Free Support Forum -

Error after Aspose 21.2.3 version DLL update

When updating Aspose 21.2.3 version DLL, error in attached test application occurs. The excell document created with Aspose Cells cannot be opened. Save format is checked as xlsx, xls, Excel97To2003. Incorrect document occurs
Error.PNG (32.6 KB)


Your code is not right. Please replace the following line of code:
wb.Save("output.xlsx", new Aspose.Cells.XlsSaveOptions(Aspose.Cells.SaveFormat.Xlsx));
with any of the following lines:

wb.Save("output.xlsx", SaveFormat.Xlsx);
wb.Save("output.xlsx", new Aspose.Cells.OoxmlSaveOptions(SaveFormat.Xlsx));

it will work fine as I tested.

Let us know if you still find any issue.