Hi,
We want to create excel charts in one of our tool. before purchasing this product, we want to make sure it will be suitable for us. I’m trying some charts using this product and found an issue with SurfaceContour chart type where i’m unable to save the chart as image.
Can you help me resolving this?
Thanks
Sarada
Hi,
Are you planning to implement this feature any time soon?
Thanks
Sarada
Hi,
Thanks for considering it.
Hello,
We would like to know the status of this issue, as Surface charts rendering is needed by our product also.
Thank you,
Bogdan Rusu,
IBM Romania.
Hi,
Thanks for your posting and considering Aspose.Cells.
I am afraid, rendering of surface chart is still not supported.
I have tested it with the latest version:
Aspose.Cells
for .NET v7.2.2.5 using the following code.
When the code is run, it throws exception. I have attached the source xlsx file used in this code.
I have also logged the new feature request with my findings in a separate ticket: CELLSNET-40830.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\SurfaceChart.xlsx”;
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[0];
Chart chart = worksheet.Charts[0];
Bitmap chartImg = chart.ToImage();
chartImg.Save(filePath + “.out.jpg”);