Hi,
When converting an Excel chart with a few data labels to image, I noticed the positions got reset.
Code:
var workbook2 = new Workbook(@".\save.xlsx");
var options = new ImageOrPrintOptions
{
ImageType = ImageType.Emf,
ChartImageType = ImageFormat.Emf,
OnlyArea = false,
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
OnePagePerSheet = true,
Transparent = true
};
workbook2.Worksheets[0].Charts[0].Calculate();
workbook2.Worksheets[0].Charts[0].ToImage(@".\out.emf", options);
I’ve attached the test files and a screenshot for your reference. Could you please take a look?
test.zip (14.6 KB)
test2.zip (14.4 KB)
image.png (58.0 KB)
image.png (81.7 KB)
Update: I have added one more example, please find the screenshot and test files attached.
Thanks