I am using Aspose cells version 220.127.116.11 .
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.