Hi,
We are using aspose-cells-8.7.0.4.jar for writing data to excel file.
The excel file is getting corrupted immediately after writing one cell to it using aspose java .
Below is the sample program with which you can reproduce the issue.
License license = new License();
license.setLicense("Aspose.Cells.lic");
Workbook wb=new Workbook("G:/kemira/saved/Audit_Trail_Report.xlsx");
Cells cells = null;
if(wb.getWorksheets().get("sheet1")!=null)
{
cells =wb.getWorksheets().get("sheet1").getCells();
}
else
{
wb.getWorksheets().add("sheet1");
cells=wb.getWorksheets().get("sheet1").getCells();
}
cells.get(0, 1).putValue("A");
cells.get(0, 2).putValue("B");
cells.get(0, 3).putValue("C");
cells.get(1, 1).putValue("3");
cells.get(1, 2).putValue("5");
cells.get(1, 3).putValue("7");
//wb.save();
wb.save("G:/kemira/saved/Audit_Trail_Report.xlsx", SaveFormat.XLSX);<a class="attachment" href="/uploads/default/15031">Audit_Trail_Report.zip</a> (75.3 KB)
Attached the base excel file I am using in this program.
Can you please let us know why this is happening.