chart.ToImage() modifies label's text alignment

Hello,

If we use chart.ToImage() on the charts present in our
attached workbook, you can see that the label’s text modifies it’s
alignment. It becomes slanted instead of straight.

Here is the code used to reproduce this issue, along with our attached file:
--------------
var workbook = new Workbook(“testFile.xlsx”);
var worksheet = workbook.Worksheets[0];

var count = 1;
foreach (var chart in worksheet.Charts)
{
chart.ToImage().Save(“out_” + count++ + “.png”);
}
--------------

InternalId: 33558

Best regards,
Jean-Alexandru Stanescu
Junior Developer
IBM Romania

Hi,


Thanks for providing us template file and sample code.

After an initial test, I observed the issue as you mentioned by using your sample code with your template file. I found Chart.ToImage() modifies label’s text alignment in the output image, it becomes slanted instead of straight.
e.g
Sample code:

var workbook = new Workbook(“testFile.xlsx”);
var worksheet = workbook.Worksheets[0];

var count = 1;
foreach (var chart in worksheet.Charts)
{
chart.ToImage().Save(“out_” + count++ + “.png”);
}

I have logged a ticket with an id “CELLSNET-44038” for your issue. We will look into it soon.

Once we have any update on it, we will let you know here.

Thank you.

Hi,

Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSNET-44038 now. We will soon provide the fix after performing QA and including other enhancements and fixes.

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


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