We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Invalid column index

I met a " Invalid column index" exception when I converted an excel file to JPG with the latest version: Aspose-cells-16.12.4-java.
Error info as below:

java.lang.IllegalArgumentException: Invalid column index.
at com.aspose.cells.zamy.b(Unknown Source)
at com.aspose.cells.zic.getColumnWidthPixel(Unknown Source)
at com.aspose.cells.zbkj.o(Unknown Source)
at com.aspose.cells.zbkj.n(Unknown Source)
at com.aspose.cells.zbkj.(Unknown Source)
at com.aspose.cells.zuc.a(Unknown Source)
at com.aspose.cells.zuc.b(Unknown Source)
at com.aspose.cells.zuc.a(Unknown Source)
at com.aspose.cells.zuc.a(Unknown Source)
at com.aspose.cells.zcac.a(Unknown Source)
at com.aspose.cells.SheetRender.(Unknown Source)

Best Regards!


Thanks for your posting and using Aspose.Cells.

We were able to replicate this exception using the following code with the latest version: Aspose.Cells for Java v16.12.5. Exception occurs when we try to render your excel file to image or pdf.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-42137 - Invalid column index exception on rendering excel

I have also shown the exception generated on my end after the execution of the following sample code using your source excel file.

Workbook wb = new Workbook(dirPath + “002.xls”);
wb.save(dirPath + “out.pdf”);

Exception in thread “main” com.aspose.cells.CellsException: Invalid column index.
at com.aspose.cells.zcac.a(Unknown Source)
at com.aspose.cells.zcac.a(Unknown Source)
at com.aspose.cells.zcaj.a(Unknown Source)
at com.aspose.cells.zcaj.a(Unknown Source)
at com.aspose.cells.zcaj.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at ClsAspose.f1(ClsAspose.java:35)
at ClsAspose.main(ClsAspose.java:16)


Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSJAVA-42137 now. We will soon provide the fix after performing QA and including other enhancements and fixes.


Please try our latest version/fix: Aspose.Cells for Java v16.12.7

Your issue should be fixed in it.

Let us know your feedback.

Thank you.


The new version has fixed the issue.
Thanks a lot!

Hi Karl,

Thank you for the confirmation. It is good to know that you are up & running again. Please feel free to contact us back in case you need our further assistance with Aspose APIs.

The issues you have found earlier (filed as CELLSJAVA-42137) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.