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

Free Support Forum - aspose.com

Problem Saving in XML Format - Method autoFitColumns()

Hi,

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();
cells.getCell(0,0).setValue("test");
cells.getCell(0,1).setValue("test");
cells.getCell(0,2).setValue(2);
sheet.autoFitColumns();
wb.save("XlFiles/Validation Test.xml", FileFormatType.SPREADSHEETML);
}
}

Regards,


Hi,

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.

Hi,
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.