Bug by saving an XLS (not xlsx)

Hi,

We get a very annoying failure by saving some of our XLS files (using in Aspose Cells for Java).

Just try the following in a Java class:
- open the attached workbook (using Workbook.open() method)
- set a value on the cell D17 (for example) in the “tabelle1” worksheet (using Cell.setValue()) method)
- save the worbook again (using one of the Workbook.save() methods)

=> an exception occurs on the Workbook.save() method:

1 20.07.2011 11:10:39.134 1’000 SEVERE Thread[ULC Communication Controller Thread,6,main] com.ulcjava.base.server.ULCSession processRequests got exception while processing [java.lang.IllegalArgumentException: Argument_InvalidOffLen
at com.aspose.cells.dP.b(Unknown Source)
at com.aspose.cells.fy.a(Unknown Source)
at com.aspose.cells.ix.v(Unknown Source)
at com.aspose.cells.ix.a(Unknown Source)
at com.aspose.cells.iC.b(Unknown Source)
at com.aspose.cells.iC.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)


This seems to be a problem with this XLS file. If you save it as an XLSX inside Excel, and run the test again, then the exception doesn’t occur anymore.

Thanks in advance for your help!

Best Regards,

Fred

Hi,

Thanks for your reporting.

I have checked your file with the the latest version and it works fine. Please download: Aspose.Cells for Java (Latest Version)

Hi,

With the version 2.5.4.14 everything properly works.

THANK YOU VERY MUCH for your “lightspeed” answer !!!

Have a nice day!

Fred

hi
we are using aspose-cells-2.5.4.10.jar and for XLS file type we are getting the below exception.

com.aspose.cells.CellsException: Can not find TXO content
at com.aspose.cells.je.a(Unknown Source)
at com.aspose.cells.je.a(Unknown Source)
at com.aspose.cells.je.a(Unknown Source)
at com.aspose.cells.dQ.a(Unknown Source)
at com.aspose.cells.dQ.b(Unknown Source)
at com.aspose.cells.dQ.a(Unknown Source)
at com.aspose.cells.iC.b(Unknown Source)
at com.aspose.cells.iC.b(Unknown Source)
at com.aspose.cells.iC.a(Unknown Source)
at com.aspose.cells.iC.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)

Hi,

Please download and use the latest version:
Aspose.Cells for Java (Latest Version)
It should work fine.