Reg-Aspose Cells Workbook issue

Hi,


I am using Aspose cells version 5.0.0.0 .
By using this i am creating excel workbook . it working fine in hosting the application local system and Staging but in production some times it getting error while download excel from production link from any system. in both chrome and Mozilla fire fox browsers.

i am saving excel like this

strFilename = “xxx_ViewResults_” + DateTime.Now.ToString(“yyyyMMdd”) + “.xls”;

workbook.Save(strFilename, FileFormatType.Excel97To2003, SaveType.OpenInExcel, this.Response);


some times it getting downloaded correctly and some time getting error message. iam attaching the screen shot of the error message occurred in Mozilla fire fox browser.


after opening the downloaded file from chrome “

Cannot open the file because the file format or extension is invalid” opening Office files

"

i am getting above error message and i am attching sreen shot of this error message.

please check which format I should use . please help me any one.

thanks,
kiran







Hi,


Thanks for providing us some details.

Well, the error does not relate to Aspose.Cells component by any means, so there is nothing to do with Aspose.Cells to cope with it. We recommend you to browse internet to fix your issue. For example, see and following documents if these are helpful to figure out your issue on the production server on your end:
https://blogs.technet.microsoft.com/the_microsoft_excel_support_team_blog/2013/09/07/updated-911-excel-cannot-open-the-file-filename-because-the-file-format-or-file-extension-is-not-valid-opening-office-files/
http://www.stellarinfo.com/support/kb/index.php/article/resolve-error-excel-cannot-open-the-file-filename-xlsx

Thank you.