Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Download to Excel...

Status
Not open for further replies.

leo2180

IS-IT--Management
Jun 7, 2000
52
US
Hey All,

I have an application that builds Excel worksheets and the application works fine, its just that it's opening on the webserver rather than to the local user. Can you help me figure out what I'm doing wrong here? Please let me know...


Thanks,
Leo2180
 
yes that's expected. if you want to user to view the workbook you need to:
1. open file stream
2. write stream to byte array
3. close stream
4. send correct content headers and byte array with response.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Do you have an example? Code snipet perhaps?
 
there are plenty of examples online. google stream file to response asp.net.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top