Export Page to Excel. Missing CSS problem

  • Thread starter Thread starter Server Control
  • Start date Start date
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.
 
Back
Top