SheetRender EMF Invalid output

I updated to Cells 6.0.0.3, after being on 5.3.3.3

I used to be able to export a sheet to EMF via the following code:

Aspose.Cells.Rendering.ImageOrPrintOptions iopo = new Aspose.Cells.Rendering.ImageOrPrintOptions(); iopo.ImageFormat = ImageFormat.Emf; iopo.OnePagePerSheet = false; iopo.PrintingPage = Aspose.Cells.PrintingPageType.IgnoreBlank;

Aspose.Cells.Rendering.SheetRender sr = new Aspose.Cells.Rendering.SheetRender(ws, iopo);

sr.ToImage(iC, fileName);

ws being a worksheet in a loop.

The output used to be a valid EMF file,

where the 6.0.0.3 output is an invalid file that cannot be loaded or opened by any viewer application.

Hi,

I can see the problem in Aspose.Cells for .NET v6.0.0.3. However, can you please provide me a sample code and source xls/xlsx file being used so that I could log this issue according to your exact needs and requirements. Thanks for your help.

Hi,

Please try this fix. Your issue should be resolved now.

Download Link: Aspose.Cells
for .NET v6.0.0.4

EMF SheetRender working again, thanks.