Forum Home
Press F1
 
Thread ID: 140344 2015-09-27 18:30:00 using aspnet to generate excel spreadsheet returns missing file error enchanted (17405) Press F1
Post ID Timestamp Content User
1409040 2015-09-27 18:30:00 I have a dot net application that is using theme for the stylesheets. I have created an apsx page that generates and opens an excel file from a gridview. Using the below code.

Response.AddHeader("content-disposition", "attachment;filename=ExcelFileName.xls")
Response.Charset = String.Empty
Response.Cache.SetCacheability(System.Web.HttpCach eability.Public)
Response.ContentType = "application/vnd.xls"

When the excel opens I get the error: problems came up during load
Missing file: pointing to the default.css file

How do I get this not to happen?
enchanted (17405)
1409041 2015-09-27 21:33:00 At a guess, use full path location of default.css, although css file? maybe you are meant to open a csv file instead.

Cheers,

KK
Kame (312)
1