Hi,
We are using aspose cells java to export to an excel. And we are getting this exception. Can you please help. We have been using this for a while and it works without any error for most reports but we get this in few cases .
Exception: Exporting Aspose Excel :com.aspose.cells.b.a.d.h cannot be cast to com.aspose.cells.adg
java.lang.ClassCastException: com.aspose.cells.b.a.d.h cannot be cast to com.aspose.cells.adg
at com.aspose.cells.acm.a(Unknown Source)
at com.aspose.cells.acm.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
Code snippet:
It fails with the above exception when it tries to create an instance of the workbook.
reportInputStream = new ByteArrayInputStream(lBinaryExcelReportData);
reportWorkbook = new Workbook(reportInputStream);