Hello,
When we use Aspose to generate Excel file, It works very well on Excel 2003. But we met some error when we generate Excel2007 file. The following is our sourcecode on Excel2007:
//Save the Excel file.
MemoryStream ms = new MemoryStream();
//wb.Save(ms, FileFormatType.Excel2003);
wb.Save(ms, FileFormatType.Excel2007Xlsx);
byte[] content = ms.ToArray();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentEncoding = Encoding.UTF8;
Response.Charset = "utf-8";
//Response.ContentType = "application/vnd.ms-excel";
Response.ContentType = "application/xlsx";
//Response.AddHeader("content-disposition", "attachment; filename=" + fileName + ".xls");
Response.AddHeader("content-disposition", "attachment; filename=" + fileName + ".xlsx");
Response.BinaryWrite(content);
Response.End();
Our Aspose.cell's version is 4.7.1 and here is the detail error information condition:
when we open the excel the following error popup.[Please check the attachment 1.JPG]
And when I click yes, I got another popup like this:.[Please check the attachment 2.JPG]
And here is the log file of the error:.[Please check the attachment 3.JPG]
After I click Close button, the file seems display well, that means all the content appeared. But it’s not good for our clients to always get the error box every time they open the excel. Could you please help me to solve this condition?
Many thanks!
Brian