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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I export ASP recordset to Excel Spreasheet

Status
Not open for further replies.

Bwintech

Programmer
Jan 25, 2002
25
GB
Hi

Can I export a SQL-Driven recordset directly to a excel spreadsheet, without use of a export wizard - i.e. through ASP code?

Thanks in advance for your help,

Regards,
Brett

 
[tt]

Sample 1:


Sample 2:

banana.gif
rockband.gif
Banana.gif

 
You can cheat, if the local machine has excel installed you can make the HTML page appear in Excel instead of HTML. All you need to do is change

Response.ContentType = "application/vnd.ms-excel"

at the beginning of the file,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top