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

Free Support Forum - aspose.com

Problem Saving in XML Format - Method autoFitColumns()


I try to create a Excel File saved in xml. When I use the sheet.autoFitColumns() method. The file created is corrupted, and cannot be opened with Excel.

Here is the sample of my code:

public class MainClass {
public static void main(String[] args) throws Exception {
License license = new License();
license.setLicense(new FileInputStream("ressource/Aspose.Cells.lic"));

Workbook wb = new Workbook();

Worksheet sheet = wb.getWorksheets().getSheet(0);
Cells cells = sheet.getCells();
wb.save("XlFiles/Validation Test.xml", FileFormatType.SPREADSHEETML);



Thanks for providing us sample code.

We found the issue as you have mentioned. We will figure out your issue soon. Your issue has been logged into our internal issue tracking system with an issue id: CELLSJAVA-12034.

Thank you.

Please try the attached version.

Thank you.

The issues you have found earlier (filed as 12034) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.