Chart to image (gif- png)

I have a technical question

I have an older version of Aspose.cells (4.4.3.1 (2008) is that possible). How can I save charts to an image file in C#.

I used your example from the site, but my workbook does not have a Chart object. Only a ChartObject()...

I use Excel 2010 xlsx and Aspose 4.4.3.1

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

Well, we think, you will need to upgrade to latest version: Aspose.Cells
for .NET v7.5.2.1
because newer APIs might not be available in the older version.

Please see the following documentation article that illustrates how to convert the chart into image. Chart to Image|Documentation

Thank you for the reply. See the attachment. What references do I need to use this?

and can I load a charts by its name

Hi,


Well, as my fellow colleague mentioned you need to upgrade to and use our latest Aspose.Cells version i.e. v7.5.1 (you will Add Reference to Aspose.Cells.dll file into your .NET project).

Also, if you need to get the designer chart in the template file’s sheet by its name, you may do it, see the sample line of code below:

//Accessing the chart by its name
Aspose.Cells.Charts.Chart chart = worksheet.Charts[“Chart1”];


Thank you.