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

Free Support Forum - aspose.com

Problems converting charts to images

Hi,

I tried to create various chart images via the ToImage() function and noticed the following problems:

3-D format, shadow and rich text formatting seems to be not supported for chart-to-image conversion. (chart 1, chart 2) When will these features be supported?

After conversion, there is a whitespace missing between ‘important’ and ‘word’. (chart 1)

The rendering of charts 2 and 3 are not proper.

Comparing Excel charts and image there are differences in the distances between legend entries. (chart 3 , chart 4)

Positioning of the pieces in Pie charts after conversion is not ok. (chart 3)

The position of trendline label in exported images is always the same. (chart 5)

Thanks in advance!

Hi,

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

Please download and try the latest version:
Aspose.Cells
for .NET v7.1.2.1


I have found that the latest version is not working fine. Please see the output images generated by the following code.

I have logged this issue in our database. We will look into it and get back to you asap.

This issue has been logged as CELLSNET-40489.

C#


string filePath = @“F:\workbook.xlsx”;


Workbook workbook = new Workbook(filePath);


int idx = 0;


foreach (Worksheet ws in workbook.Worksheets)

{

foreach (Chart ch in ws.Charts)

{

Bitmap bmp = ch.ToImage();


bmp.Save(filePath + “.out_” + idx + “.jpg”, ImageFormat.Jpeg);


idx++;

}

}



@andreas.lampe,
Please try aspose.cells21.6 .

We have fixed some problems.
Let us know your feedback.