In the excel file “PieChart.xlsx” there is a chart. Rendering the chart to image => “PieChart.png” offsets the label from the right of the chart, the one with the value “43,.6%”.
The code to reproduce the issue is:
var workbook = new Workbook(@“C:\PieChart.xlsx”);
foreach (Worksheet worksheet in workbook.Worksheets)
var opts = new ImageOrPrintOptions
Quality = 100,
VerticalResolution = 200,
HorizontalResolution = 200,
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true,
OnlyArea = true
var chart = workbook.Worksheets.Charts;
using (var chartImage = chart.ToImage(opts))
Thanks for your posting and using Aspose.Cells for .NET.
were able to replicate this issue using your code with the latest
version. We have logged this issue in our database. We will look into it
and resolve it. 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-41603