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

Free Support Forum - aspose.com

Converting an excel chart into an image

I have problem converting a chart into an image. The image is generated but it doesn't look good at all.

Here is the used code and attached are excel and generated image files.

The excel file is in xls-format. If I use xlsx-format the image is all black.

Workbook workbook = new Workbook();

workbook.Open(excelFile);

Chart chart = workbook.Worksheets[0].Charts[0];

System.Drawing.Bitmap bitmap = chart.ToImage();

bitmap.Save(imageFile, System.Drawing.Imaging.ImageFormat.Jpeg);

Hi,

Could you post your template file here, we will check your issue soon.

And by the way which version of Aspose.Cells for .NET you are using?

Thank you.

Hi,

Please try this fix.

We have fixed the bug of reading chart from xlsx and the image is all black.

The excel file from where the chart is fetched is attached as file "Logins.xls"

The version of Aspose.Cells is 4.5.0.0 and .NET version is Net2.0

The new version (4.5.0.31) of the Aspose.Cells file did the trick for both my problems.

Thanks!!

How does it work? Is it from the download page I can get the updates of the dll's and is this fix included or will it be included in a future release? Will I be notified when new releases are ready for download or do I have look for it my self.

Thanks again for the fix.

Hi,

Well, it's bug fix version and you may use it for your need. It will just behave like an official release. However, if you want the official release, our next official release (upcoming release) would include the functionality of this fix. Generally you have to look for the next official release himself, but if you require, we may notify you about it.

Thank you.