Free Support Forum -

SheetRender EMF Invalid output

I updated to Cells, after being on

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 output is an invalid file that cannot be loaded or opened by any viewer application.


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.


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.