Export Page to Excel. Missing CSS problem

S

Server Control

Hi,
I want to export an entire Page to excel. If I try to export the page
with Inline disposition:
Response.AddHeader("content-disposition", "inline;filename=abc.xls");
the css and formatting appears properly.
However, if I use "Attachment" type
Response.AddHeader("content-disposition",
"attachment;filename=abc.xls"); I get an error dialog : saying "Missing
File: C:\....\Style.css". It is unable to find the css files on my
page.
I need to open the excel in a new window. If anyone knows about this
problem, please let me know.
 

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

Similar Threads


Top