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

Free Support Forum - aspose.com

Not able to use ImageType OfficeCompatibleEmf or Emf with ImageOrPrintOptions for Excel rendering

After updating to the latest version from 21.11.0

The following code throws this exception: “Aspose.Cells.CellsException: ‘Metafile image is not supported’”

var options = new ImageOrPrintOptions
OnePagePerSheet = true,
AllColumnsInOnePagePerSheet = true,
ImageType = ImageType.OfficeCompatibleEmf

After doing some testing the last version of Apose.Cells where this works is 22.9.0, using 22.10.0 or later throws the exception.

Environment is .NET7

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

  Issue ID(s): CELLSNET-52623

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Please check the doc https://docs.aspose.com/cells/net/how-to-run-aspose-cells-for-net6/
If you are working on Windows, please use net7.0-windows or net6.0-windows in installation directory.

I’ve set all the projects in my solution to target net7.0-windows as per the instructions in the link you provided, re-added the Aspose.Cells dependency. However, the Skia dll still gets copied to the build folder and I am still getting the same error.

Could you post a template file here? We will check it ASAP.