Data Series Line Style cap Type property is reset to default when a chart is converted to image.
The original chart has the blue line chart with round corners, but the generated image has the same chart with square corners.
The code to replicate the problem is:
var workbook = new Workbook(@“C:\Chart.xlsx”);
foreach (Worksheet worksheet in workbook.Worksheets)
var opts = new ImageOrPrintOptions
Quality = 100,
HorizontalResolution = 200,
VerticalResolution = 200,
ImageFormat = ImageFormat.Png
var chart = workbook.Worksheets.Charts;
using (var chartImage = chart.ToImage(opts))
Thanks for your posting and using Aspose.Cells for .NET.
We were able to replicate this issue using the latest version. We have logged this issue in our database.
We will look into this issue and fix 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-41489.
The cap of line issues are fixed now.