Hi!
We use aspose-cells-7.6.0 for Java.
Simple code:
Workbook workbook = new Workbook(“test.xlsx”);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
workbook.save(baos, SaveFormat.AUTO);
according to the documentation SaveFormat.AUTO should work as following:
If saving the file to the disk,the file format format accords to the extesion of the file name.
If saving the file to the stream, the file format is xlsx.
If saving the file to the stream, the file format is xlsx.
but instead it generates:
Exception in thread “main” java.lang.NullPointerException
at com.aspose.cells.OoxmlSaveOptions.(Unknown Source)
at com.aspose.cells.FileFormatUtil.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
when changing SaveFormat.AUTO to SaveFormat.XLSX all works fine.
Bug?
Many thanks for considering my request.