Hi,
Using Aspose Cells for Java, version 24.5.
Sample code:
InputStream xlsbInputStream = new BufferedInputStream(new FileInputStream("input.xlsb"));
LoadOptions loadOptions = new LoadOptions();
loadOptions.setMemorySetting(MemorySetting.MEMORY_PREFERENCE);
loadOptions.setKeepUnparsedData(false);
loadOptions.setParsingFormulaOnOpen(false);
loadOptions.setLightCellsDataHandler(new LightCellsDataHandler() {
@Override
public boolean startSheet(Worksheet worksheet) {
return true;
}
@Override
public boolean startRow(int i) {
return true;
}
@Override
public boolean processRow(Row row) {
return false;
}
@Override
public boolean startCell(int i) {
return true;
}
@Override
public boolean processCell(Cell cell) {
return true;
}
});
Workbook workbook = new Workbook(xlsbInputStream, loadOptions);
Resulting exception stacktrace:
Exception in thread "main" java.lang.NullPointerException
at com.aspose.cells.je.a(Unknown Source)
at com.aspose.cells.dhp.b(Unknown Source)
at com.aspose.cells.dhp.a(Unknown Source)
at com.aspose.cells.dhp.z(Unknown Source)
at com.aspose.cells.dhp.a(Unknown Source)
at com.aspose.cells.dfu.a(Unknown Source)
at com.aspose.cells.g.e(Unknown Source)
at com.aspose.cells.g.w(Unknown Source)
at com.aspose.cells.g.a(Unknown Source)
at com.aspose.cells.auq.a(Unknown Source)
at com.aspose.cells.jy.a(Unknown Source)
at com.aspose.cells.jy.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.<init>(Unknown Source)
at <repro case>
input.zip (9.0 KB)
Kind regards,
Taras