Free Support Forum - aspose.com

Shape to image Error on save to pdf

Hello,

I’m getting the following error trying to convert the attached xls to pdf:
Aspose.Cells.CellsException: Shape to image Error!
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Aspose.Cells.Workbook.Save(String fileName, SaveFormat saveFormat)

Aspose.Cells for .Net 20.9.0.0
Snippet:
var workbook = new Workbook(inputFilePath);
workbook.Save(outputFilePath, Aspose.Cells.SaveFormat.Pdf);

Q1580246-XLS-AsteelFlash.zip (1.6 MB)

Thank you,
Sergey

@sergtey.kogan,
We have observed the error “Shape to image” while converting the template file to PDF. This issue is logged in our database for further testing and a fix. We will write back here once any update is ready to share.

This issue is logged as:
CELLSNET-47620 - Shape to image Error while saving to PDF

@sergtey.kogan,

Please try our latest version/fix: Aspose.Cells for .NET v20.9.6 (attached)

Your issue should be fixed in it.

Let us know your feedback.
Aspose.Cells20.9.6 For .Net2_AuthenticodeSigned.Zip (5.4 MB)
Aspose.Cells20.9.6 For .Net4.0.Zip (5.4 MB)
Aspose.Cells20.9.6 For .NetStandard20.Zip (5.4 MB)

Thank you, Amjad_Sahi!
My license had just expired a week ago. I’ll test it as soon as I get a new one.

@sergtey.kogan,

Please take your time to evaluate the new fix. Hopefully your issue will be fixed in it.

@Amjad_Sahi,

This version works well, thanks!
Can you tell when are you going to release NuGet package with this fix?

@sergtey.kogan,

Good to know that your issue is sorted out by the new fix. You may use this fix for production as it is fully tested and passes certain QA modules. However, if you need official release you have to wait a bit. Please note our next official version (e.g. Aspose.Cells for .NET v20.10) will be published (both on Downloads section and Nuget repos.) in the third week of October, 2020 (it includes your fix). You will be notified as well once the release is published.

The issues you have found earlier (filed as CELLSNET-47620) have been fixed in Aspose.Cells for .NET v20.10. This message was posted using Bugs notification tool by Amjad_Sahi. You may also get the version @ Nuget repos. (https://www.nuget.org/packages/Aspose.Cells/20.10.0).