G
Guest
Hi All,
I'm generating XLS files from ASP(.Net) code using the usual code
chunks ...
Response.ContentType = "application/vnd.ms-excel"
Response.AppendHeader("Content-Disposition", "attachment; filename=""" &
NomeFile & """")
Response.Flush()
Response.write("<table border=""1"" .....
......
......
Response.end
It all works fine since I'm able to Open/Save the file with Excel 2000. But
.....
....... when I run the code on a box where only an Excel Viewer 2003 is
installed (rather then the full product) I cannot open it, and Viewer aborts
with the following Message : "Cannot Open files of this type".
Choosing to save save the file to reopen it laterleads to the same error.
Moreover, the generated XLS file looks to be really small ....(1Kb) and
after opening and resaving it from Excel program as a xls Workbook it becomes
larger (14Kb). At this point the viewer can open it.. ...
All this let me think that the generated file is not a "real" xls file ....
while viewer can only open this kind of files ... (also tried to use freeware
viewer but I got the same behaviour .....)
Any help is appreciated .... Thanks in advance Daniele Balducci
I'm generating XLS files from ASP(.Net) code using the usual code
chunks ...
Response.ContentType = "application/vnd.ms-excel"
Response.AppendHeader("Content-Disposition", "attachment; filename=""" &
NomeFile & """")
Response.Flush()
Response.write("<table border=""1"" .....
......
......
Response.end
It all works fine since I'm able to Open/Save the file with Excel 2000. But
.....
....... when I run the code on a box where only an Excel Viewer 2003 is
installed (rather then the full product) I cannot open it, and Viewer aborts
with the following Message : "Cannot Open files of this type".
Choosing to save save the file to reopen it laterleads to the same error.
Moreover, the generated XLS file looks to be really small ....(1Kb) and
after opening and resaving it from Excel program as a xls Workbook it becomes
larger (14Kb). At this point the viewer can open it.. ...
All this let me think that the generated file is not a "real" xls file ....
while viewer can only open this kind of files ... (also tried to use freeware
viewer but I got the same behaviour .....)
Any help is appreciated .... Thanks in advance Daniele Balducci