Chart image is different from the source

Hello,

When calling Chart.ToImage() on the object named “WaterfallSummary” in our attached workbook, we get a different result than the original.

Here is the code used to reproduce this issue:
---------
var workbook = new Workbook(“testFile.xlsx”);
var worksheet = workbook.Worksheets[0];
const string chartName = “WaterfallSummary”;

var chart = worksheet.Charts.FirstOrDefault(x => chartName.Equals(x.Name, StringComparison.OrdinalIgnoreCase));
if (chart == null)
return;
chart.ToImage().Save(“out.png”);
---------

InternalId: 28183

Best regards,
Jean-Alexandru Stanescu
Junior Developer
IBM Romania

Hi Jean-Alexandru Stanescu,

Thanks for your posting, highlighting the issue with chart images and using Aspose.Cells.

We have tested this issue with the following sample code using the latest version: Aspose.Cells
for .NET v8.6.0.7
and found the output chart is different than the source chart as you have shown in your images.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-44012 - Chart image is different from the source

I have attached the output pdf generated with the following code for a reference.

C#
string filePath = @“F:\Shak-Data-RW\Downloads\testFile.xlsx”;

Workbook workbook = new Workbook(filePath);

PdfSaveOptions opts = new PdfSaveOptions();
opts.OnePagePerSheet = true;

workbook.Save(filePath + “.out.pdf”, opts);

Hello,

Do you have an update on this issue?

Hi,

Thanks for your posting and using Aspose.Cells.

We are afraid, there is no update for you regarding this issue at this moment. However, we have logged your comment in our database against this issue and requested the product team to provide some fix or ETA for this issue. Once there is some news for you, we will update you asap.

Hi,


Please try our latest version/fix: Aspose.Cells for .NET v8.8.2.10 (attached).

We have fixed your issue now.

Let us know your feedback.

Thank you.

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.