If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How to export recordset to xls or csv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-04, 17:25
garrettpk garrettpk is offline
Registered User
 
Join Date: Jan 2004
Location: Wisconsin
Posts: 1
How to export recordset to xls or csv

I am trying to create a small little reporting app in asp for our sales guys and have the queries going to a html table. I was wondering how I could add a button so my users could download the recordset to there computers.
Reply With Quote
  #2 (permalink)  
Old 01-05-04, 19:56
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
data in excel format on HTML page

If you want to display the data in excel format on HTML page, you need to add the following code at the beginning of your asp code:

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

And also you need to remove all templates including header, footer, left or right bar. In this ASP file, you only use the table. That's it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On