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 > Export to Excel (and compress -> ZIP)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-04, 07:18
dove_g dove_g is offline
Registered User
 
Join Date: Jan 2004
Posts: 30
Export to Excel (and compress -> ZIP)

I have succesfully create export from my database to Excel file using
Response.ContentType = "application/vnd.ms-excel"
command.

It's kinda interesting, but I have three questions more which I don't know how to realize.

1. Is it possible instead of xls, export as compressed .zip file?
2. Is it possible to Freeze first row, freeze option in Excel stay "always on"?

3. How to add some special code which I would write in Excel?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-06-04, 06:22
venkmann venkmann is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
export explanation

may you be so kind to explain the exact steps to export a database to excel? thanks
Reply With Quote
  #3 (permalink)  
Old 04-06-04, 07:54
dove_g dove_g is offline
Registered User
 
Join Date: Jan 2004
Posts: 30
Just create standard table and all records in this table you want to show.

And add this in the begginig of the page:

Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "content-disposition", "attachment; filename=filename.xls"


That's all.
Reply With Quote
  #4 (permalink)  
Old 04-06-04, 22:46
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Re: Export to Excel (and compress -> ZIP)

Quote:
Originally posted by dove_g
2. Is it possible to Freeze first row, freeze option in Excel stay "always on"?
If you export the data from the database to excel file, you can control to keep or remove the first row.
Reply With Quote
  #5 (permalink)  
Old 04-07-04, 01:51
dove_g dove_g is offline
Registered User
 
Join Date: Jan 2004
Posts: 30
How to do that, I'm generating table in ASP code from MS Access database using above mentioned commands.

All I want is to freeze first row and somehow compress excel file in the fly (.zip).
Uncompressed .xls file has 300 kB and compressed zip only 20 kB, so this will be very good option for my web page.

Thank you.
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