L
Lars Netzel
I have an XLS file that I try to send to the webclient via ASP.NET. When
sending I use this code...
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "inline; filename=" &
ClientFilename & ".xls")
Response.WriteFile(Filename)
Response.Flush()
The Problem:
When clicking the link that is running this code the "_blank" window that is
suppoed to show the excel file, closes imediately... it's like.. I click..
a new window opens and closes right away.. no error messages
I do the same for a PDF file with the only exception for the contenttype and
extention of the file name. and that works fine.
What's the problem you think? why does a PDF work and not the Xls file?
best regards
/Lars
sending I use this code...
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "inline; filename=" &
ClientFilename & ".xls")
Response.WriteFile(Filename)
Response.Flush()
The Problem:
When clicking the link that is running this code the "_blank" window that is
suppoed to show the excel file, closes imediately... it's like.. I click..
a new window opens and closes right away.. no error messages
I do the same for a PDF file with the only exception for the contenttype and
extention of the file name. and that works fine.
What's the problem you think? why does a PDF work and not the Xls file?
best regards
/Lars