We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Xlsx to emf chart conversion has inconsistency between the display of points on the axis

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,

@ServerSide527,
We have reproduced this issue here and logged in our database for an investigation and fix. We will notify you once any update is ready to share.

This issue is logged as:

CELLSNET-47479-Xlsx to emf chart conversion has inconsistency between the display of points on the axis