We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Book- that saved as XML could not be opened by Excel without error

I save a new book by API. And open saved file by Excel. It show me a message about wrong file format
public void bookTest() throws Exception {
Workbook book = new Workbook();
book.save("D://out.xml", FileFormatType.XML);


Thanks for your posting and using Aspose.Cells.

Please use the following code and it will generate correct xml file which can be opened fine by Microsoft Excel.

Workbook book = new Workbook();
book.save(dirPath + “out.xml”, SaveFormat.SPREADSHEET_ML);

Hi. It’s work for me. Thanks.


Good to know that your issue is sorted out by the suggested code. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.