Free Support Forum - aspose.com

Workbook.SaveOptions.SaveFormat not working with Aspose.Cells dll version 8.3.1.0

Hi ,


Thanks in advance for the help.

I am using Aspose.Cells dll reference in one of my Projects , earlier it was working fine for me with version (8.3.1.0) but as the dll version got updated above mentioned code started throwing error , I have attached error message below. Please help me out in fixing this issue.


Thanks.
Milind

Hi,


Thanks for providing us some details.

Yes, in the newer versions this is a read-only property. Please change your sample code as following:
e.g
Sample code:

OoxmlSaveOptions saveOptions = new OoxmlSaveOptions(SaveFormat.Xlsx);
workbook.Save(“e:\test2\out1.xlsx”, saveOptions);

Let us know if you still have any issue.

Thank you.