HTTPS/SSL Problem
Some users reported that they had problems to download Excel files generated with Aspose.Cells. When the save dialog opens, the file name contains the name of the aspx page instead of the excel file, and the File Type is blank.
Explanation
We changed HTTP response headers to solve the problem with HTTP compression. This may cause problem while sending files to client browser through HTTPS/SSL.
Solution
You can try to use the following code the send the generated Excel file to client.
[C#]
//Saves file to memory
MemoryStream stream = new MemoryStream();
excel.Save(stream, FileFormatType.Default);
response.ContentType = "application/vnd.ms-excel";
//This is same as OpenInExcel option
response.AddHeader( "content-disposition","attachment; filename=book1.xls");
//This is same as OpenInBrowser option
//response.AddHeader( "content-disposition","inline; filename=book1.xls");
response.BinaryWrite(stream.ToArray());
[Visual Basic]
'Saves file to memory
Dim stream As MemoryStream = New MemoryStream()
excel.Save(stream, FileFormatType.Default)
response.ContentType = "application/vnd.ms-excel"
'This is same as OpenInExcel option
response.AddHeader("content-disposition","attachment; filename=book1.xls")
'This is same as OpenInBrowser option
'response.AddHeader( "content-disposition","inline; filename=book1.xls")
response.BinaryWrite(stream.ToArray())