Exporting to Excel

B

bcap

Hi,

I am using the following code to export to Excel:

fn = "QUERYRESULTS.xls"
Response.Buffer = TRUE
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition","attachment;filename=" & fn
Response.AddHeader "Content-Disposition","filename=D:\results.xls"

'Response.Buffer = True
'Response.ContentType = "application/word"
'Response.AddHeader "content-disposition", "inline; filename =
ASP_Word_Doc.doc"



However, when it opens in Excel, you will need to modify Excel in
order to be able to print on one page. Is there any way to set the
printing during this process so users do not have to do this each time
they want to print? Or is their another method of doing this that
would work better?

Thank yoU!!!!!!!!!!!!!!!!!!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top