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

Free Support Forum - aspose.com

Convert to pdf:Shape to image Error

Hifriends.

While convert document to PDF with the latest version of Aspose.Cells,it throws a catch” Shape to image Error”.the document have upload.

Best regards.

Hi,

Thanks for your posting and using Aspose.Cells.

We have tested this issue with the following sample code using the latest version:
Aspose.Cells for .NET (Latest Version) with your source excel file and found it causes shape to image error exception while converting it to 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

  • CELLSNET-44354 - Shape to image Error on converting excel to pdf

C#
string filePath = @“D:\Downloads\a07151f6-430f-4ec6-b64f-b615e7f7b1d6.xls”;

Workbook wb = new Workbook(filePath);
wb.Save(“output.pdf”);

Exception:
Aspose.Cells.CellsException was unhandled
HResult=-2146232832
Message=Shape to image Error!
Source=Aspose.Cells
StackTrace:
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Aspose.Cells.Workbook.Save(String fileName)
at CellsNET.Program.f1() in d:\Aspose\Projects\NET\AsposeProject\CellsNET\Program.cs:line 49
at CellsNET.Program.Main(String[] args) in d:\Aspose\Projects\NET\AsposeProject\CellsNET\Program.cs:line 28
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Hi,

Thanks for using Aspose.Cells.

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

Hi,

Thanks for your using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for .NET (Latest Version) and let us know your feedback.

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


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