Excel 95 Support


#1

I am trying to convert Excel 95 files to PDF.
From:
https://docs.aspose.com/pages/viewpage.action?pageId=78872623
it appears it could be supported but

    String fileName = "/tmp/excel_two_sheets_95.xls";
    Workbook workbook = new Workbook(fileName);

throws

java.lang.IllegalStateException: Invalid encoding: null

at com.aspose.cells.Encoding.a(Unknown Source)
at com.aspose.cells.Encoding.a(Unknown Source)
at com.aspose.cells.zcx.a(Unknown Source)
at com.aspose.cells.zcx.b(Unknown Source)
at com.aspose.cells.zcdi.l(Unknown Source)
at com.aspose.cells.zcdi.W(Unknown Source)
at com.aspose.cells.zcdi.p(Unknown Source)
at com.aspose.cells.zcdi.a(Unknown Source)
at com.aspose.cells.zji.a(Unknown Source)
at com.aspose.cells.zji.a(Unknown Source)
at com.aspose.cells.zji.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.<init>(Unknown Source)
at com.csdisco.excelprocess.ExcelProcessHandlerIT.repro(ExcelProcessHandlerIT.java:930)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

Caused by: java.lang.IndexOutOfBoundsException
at java.nio.ByteBuffer.wrap(ByteBuffer.java:375)
… 35 more

This is the input file:


#2

@russ.nichols,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-42926 - IllegalStateException on loading workbook

#3

@russ.nichols,
This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42926”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.


#4

@russ.nichols,
Please try our latest version/fix: Aspose.Cells for Java v18.5.7:
aspose-cells-19.5.7.zip (6.5 MB)

Your issue should be fixed in it.

Let us know your feedback.


#5

Works with the new JAR …thank you


#6

@russ.nichols,
You are welcome.


#7

The issues you have found earlier (filed as CELLSJAVA-42926) have been fixed in Aspose.Cells for Java 19.6. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi