Excel to pdf Shape to image Error!

excel convert pdf error:Shape to image Error!
aspose.cells version:8.2.2.0
code:
var excel = new Aspose.Cells.Workbook(sourceFilePath);
try
{
if (excel.Worksheets.Count > 0)
for (var n = 0; n < excel.Worksheets.Count; n++)
{
var sheet = excel.Worksheets[n];
if (sheet == null) continue;
//sheet.PageSetup.Zoom = 100;
sheet.PageSetup.Orientation = Aspose.Cells.PageOrientationType.Portrait;
sheet.PageSetup.FitToPagesTall = 1;
sheet.PageSetup.FitToPagesWide = 1;
}
excel.Save(pdfFilePath, Aspose.Cells.SaveFormat.Pdf);
}
catch { }

Hi Anni,


Thank you for contacting Aspose support.

I am afraid, we require your sample spreadsheet to properly evaluate your presented scenario on our end. It would be of great help in isolating the problem cause if you can also share your environment details such as Operating System version/architecture and Target .NET Framework version.

Looking forward to your kind response.

Hi Anni,


Thanks for your posting and using Aspose.Cells.

We were able to observe this exception by executing the following code with your source Excel file using the latest version: Aspose.Cells for .NET (Latest Version) . Shape to Image Error occurs on converting Excel file 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-43119 - Shape to Image Error on converting Excel file to PDF

C#

string filePath = @“F:\Shak-Data-RW\Downloads\testShape.xlsx”;


Workbook workbook = new Workbook(filePath);

workbook.Save(filePath + “.out.pdf”, SaveFormat.Pdf);


Exception:
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Aspose.Cells.Workbook.Save(String fileName, SaveFormat saveFormat)

Additional information: Shape to image Error!

Hi Anni,

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-43119) have been fixed in this update.


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