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

Free Support Forum - aspose.com

Issue with Chart.ToImage

Hi there,


The issue here is that the very top line of the chart is ‘cutoff’. The issue only occurs when the y axis is set to finish on a minor gridline as opposed to a major gridline.

So if you look at excel_before.jpg i have made an arrow to the line we should see, we see this fine at print preview and on the sheet itself. But then when you look at chart_output.jpg you see the top line is missing.

Please could you advise if this is a bug and if there is a workaround?

Test workbook attached and code used is below:

Workbook wb = new Workbook(“testBook2.xlsx”);

Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();
options.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
options.Quality = 100;
options.VerticalResolution = 300;
options.HorizontalResolution = 300;
options.PrintingPage = PrintingPageType.IgnoreBlank;

Aspose.Cells.Charts.Chart chart = wb.Worksheets[0].Charts[0];
chart.ToImage(“chart_output.jpg”, options);

Hi,

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

We were able to replicate this issue using your sample code with the latest version. We have logged your issue in our database. We will look into it and resolve 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-41696.

Hi,

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

We have fixed the issue of minor gridline .

Please download and try this fix: Aspose.Cells for .NET v7.4.3.5 and let us know your feedback.

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


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