Hi,
When I tried to convert an Excel chart to emf file, I saw a difference between the two charts. Excel didn’t show the points on the x and y axis (e.g. (0,0), (0,10), (10,0)), whereas the emf image showed them.
Code:
var options = new ImageOrPrintOptions { ImageType = ImageType.Emf, ChartImageType = ImageFormat.Emf };
var book = new Workbook(@“C:\test.xlsx”);
Bitmap img = book2.Worksheets[0].Charts[0].ToImage(options);
img.Save(@“C:\test.emf”, ImageFormat.Emf);
I guess the expected behavior would be to have an identical image of the chart that’s shown in the xlsx file, but I might be missing something.
I’ve attached the test files for your reference. Could you please help me take a look?
test.zip (11.8 KB)
Thanks,