Unable to Convert the chart to image

Hi,

I am using the following code to convert the chart into image. I t is working fine for most of my spreadsheets except one. I am attaching the spreadsheet here. could you please suggest me on how I can convert it to an image?

Workbook workbook = new Workbook(“e:\workbook.xlsx”);

//Get the designer chart (first chart) in the first worksheet.
//of the workbook.
Aspose.Cells.Charts.Chart chart = workbook.Worksheets[0].Charts[0];

//Convert the chart to an image file.
chart.ToImage(@“e:\chart.png”, System.Drawing.Imaging.ImageFormat.Png);

Hi Srinu,


Thank you for contacting Aspose support.

We have evaluated your presented scenario while using the latest version of Aspose.Cells for .NET 8.2.1.1. and are able to see the problem. The Chart.ToImage method is rendering only the chart title to the image. At the moment, we are not sure what could be causing this issue, therefore we have logged the problem in our bug tracking system under the ticket CELLSNET-43040 for thorough investigation. Please spare us little time to properly analyze the problem cause on our end. In the meanwhile, we will keep you posted with updates in this regard.

Hi Srinu,

Thanks for your using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for .NET v8.2.2.2 and let us know your feedback.

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


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