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);