Save to html occur exception

Workbook wb = new Workbook("C:/y.xlsx");
Cells cells = wb.getWorksheets().get(0).getCells();
cells.insertColumns(416, 7);
cells.copyColumns(cells, 3, 416, 7);
wb.save("C:/y.html");



Exception in thread "main" java.lang.NullPointerException
at com.aspose.cells.zaeo.g(Unknown Source)
at com.aspose.cells.zaeo.(Unknown Source)
at com.aspose.cells.zaeb.(Unknown Source)
at com.aspose.cells.zaed.b(Unknown Source)
at com.aspose.cells.zadz.a(Unknown Source)
at com.aspose.cells.zaee.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)



Hi,


Thanks for the template file and details.

After an initial test, I observed the issue as you mentioned by using the following sample code with your template file. I found the exception: “java.lang.NullPointerException” while converting the Excel file to HTML file format:
e.g
Sample code:

Workbook wb = new Workbook(“y.xlsx”);
Cells cells = wb.getWorksheets().get(0).getCells();
cells.insertColumns(416, 7);
cells.copyColumns(cells, 3, 416, 7);
wb.save(“f:\files\out1.html”);

I have logged a ticket with an id “CELLSJAVA-41586” for your issue. We will look into it soon.

Once we have any update on it, we will let you know here.

Thank you.

Hi,

Thanks for using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for Java v8.6.2.1 and let us know your feedback.

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.