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!

generate excel file

Status
Not open for further replies.

andyc209

IS-IT--Management
Dec 7, 2004
98
GB
I want to create an excel file based on data passed from the DB. so far I have used

set fso = createobject("scripting.filesystemobject")
act.write(blah blah) etc

to generate csv file on the server that the user can then open and print. However I want to create formated excel files, I have seen people say use

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

but I do not want them to have the file open for them, I just want the page to create the file on the server ready for them to open.

can anyone help
 
If you are not doing a lot of formatting, you can save the file as a CSV and provide a link to download it.

Excel will open CSV files and display the information in a tabular format.



--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top