Hi,
I encontered a strange behaviour in "SaveToHttpResponse" with current Firefox-Browser and also Opera-Browser.
At first my enviroment:
Spire.xls Version 7.3.0.7040
Webserver: IIS 8
Asp.net 4.5
Protokoll: SSL
My problem in Firefox and Opera:
I have an Excel file as a template which is definetly a Excel 2007 file. And my code goes like this
---------------------------
workbook.LoadFromFile(aFile, ExcelVersion.Version2007)
....
Do some stuff in Excel
....
workbook.SaveToHttpResponse("AnExcelFile.xlsx", Response)
Response.End()
---------------------------
Although I set "ExcelVersion.Version2007" and the filename with a proper extension "AnExcelFile.xlsx" the "SaveToHttpResponse" changes the filename to "AnExcelFile.xlsx.xls" It adds the extension ".xls". But only in Firefox- and Opera-Browser.
The Firefox- and Opera-Browser suppose, that the downloaded Excel is an old Excel Version (97to2003). The browsers throw a warning.
But!
In IE it all works fine. IE correctly detecs a Excel 2007 file and in IE it works like a charm.
Any clues about the problem in the different browsers? I only tested the current versions of IE, Firefox and Opera.
Best regards
Oliver