Hello
I've just installed the latest version (6.0.1.4) of the Aspose.Cells component (only demo) to try if it can help us with exporting our Excel charts to images.
We try to get better result than the built-in VBA function (Export) offers, especially we are focused on the image quality.
For genarting image by aspose I use code like this
//Create a new workbook.
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook();
//Open the existing excel file which contains the pie chart.
workbook.Open(path+fileName);
//Get the designer chart
Aspose.Cells.Charts.Chart chart = workbook.Worksheets["Figure 9"].Charts[0];
//Convert the chart to an image file.
System.Drawing.Bitmap bitmap = chart.ToImage();
bitmap.Save(path + "Aspose.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
bitmap.Save(path + "Aspose.gif", System.Drawing.Imaging.ImageFormat.Gif);
bitmap.Save(path + "Aspose.png", System.Drawing.Imaging.ImageFormat.Png);
bitmap.Save(path + "Aspose.tiff", System.Drawing.Imaging.ImageFormat.Tiff);
But the output image is quite blurry and also it doesn't respect size of the chart area.
Look at the attachments
What should I have to set to get better image?
Thanks
Pat