Chart legends wrapping when saving as an image

Hi,

We are evaluating using Aspose.Cells as part of our content authoring platform. However I have come across a problem that occurs when I use the latest version of Aspose.Cells 7.0.1.1.

It does not render a chart as an image quite accurately enough for our requirements:

Below is the chart in excel:


And below is the image that the aspose generates:

  • The legend has wrapped around.
  • There is an artifact 'numeral 2' at the top-left of the image?

I've attached a project which reproduces this problem.

  • Run the attached program
  • Look at the folder generated bin\Debug\Charts\Oil
  • Chart_0.png is the above image

Hi,

Thanks for reporting and considering Aspose.Cells for .NET.

I was able to reproduce this problem using the following code with the latest version:
Aspose.Cells for .NET v7.0.1.5


We have logged this issue in our database. Once the issue is fixed or we get some update, we will let you know asap.

This issue has been logged as CELLSNET-31099.

Below is a code example and output image for a reference.

C#


string path = @“F:\Shak-Data-RW\Downloads\test\Charts\Oil.xlsx”;

Workbook workbook = new Workbook(path);


Worksheet worksheet = workbook.Worksheets[0];


Chart ch = worksheet.Charts[0];


Bitmap bmpChart = ch.ToImage();

bmpChart.Save(path + “.out.jpeg”, ImageFormat.Jpeg);



Hi,

We have fixed this issue. Please download: Aspose.Cells for .NET v7.0.1.7

The issues you have found earlier (filed as 31099) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.