Author: Trax72 | Posted on: 2/19/2009 6:23:59 AM | Views : 417

Having the same problem as mentioned in some of the last posts of http://forums.asp.net/t/1070490.aspx?PageIndex=2 ...
 I'm using Syncfusion to generate an excel file and sending it back with the html response. For some reason, when attempting to open it directly in Excel 2007 from the browser, I get the error:

The file you are trying to open, 'Xlstest.aspx', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?

If the file is saved first and then opened, this error does not occur.

It seems this only happens with IE (I'm using version 7), it looks like the url is passed to Excel with a shortcut file so Excel thinks it's opening an .aspx file. I'm guessing FF saves it in its cache first with the proper filename and then opens it in Excel so no problem occurs there. Is ther ...

Go to the complete details ...