Hi,
When converting some surface charts in Excel to images, I found the output image was empty.
Code:
var workbook = new Workbook(@".\test.xlsx");
var options = new ImageOrPrintOptions
{
ImageType = ImageType.Emf,
OnlyArea = false,
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
OnePagePerSheet = true,
Transparent = true
};
workbook.Worksheets["sheet1"].Charts[0].ToImage(@".\0.emf", options);
workbook.Worksheets["sheet1"].Charts[1].ToImage(@".\1.emf", options);
workbook.Worksheets["sheet1"].Charts[2].ToImage(@".\2.emf", options);
workbook.Save(@".\test.pdf");
The 3 images were empty and in test.pdf the charts were missing.
I’ve attached the test files for your reference. Could you please help me check this?
test.zip (47.5 KB)
Thanks,