Free Support Forum - aspose.com

Aspose.Cells com.aspose.cells.CellsException: Shape to image Error!

Hi,

I've been getting this error from many files. I suspect its related to the embedded chart, however I'm not an Excel expert.

The stack trace from Aspose.Cells v7.4.1 for Java is:
com.aspose.cells.CellsException: Shape to image Error!
at com.aspose.cells.At.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)

I have included a sample which exhibits the problem. On request we may be able to provide more samples if this helps resolve the issue.
Also see my previous post: http://www.aspose.com/community/forums/permalink/451992/451992/showthread.aspx#451992

Regards
Nick

Hi,

Thanks for your posting and using Aspose.Cells for Java.

We were able to replicate this exception using the latest version. Below is a sample code for a reference.

We have logged this issue in our database. We will look into it and fix it. 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-40465.

Java


String filePath = “F:\Shak-Data-RW\Downloads\Electricity+Price+Index.xls”;

Workbook workbook = new Workbook(filePath);


workbook.save(filePath + “.out.pdf”);


Exception
Exception in thread "main" com.aspose.cells.CellsException: Shape to image Error!
at com.aspose.cells.At.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at ClsAsposeTest.f1(ClsAsposeTest.java:47)
at ClsAsposeTest.main(ClsAsposeTest.java:26)

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


This message was posted using Notification2Forum from Downloads module by aspose.notifier.