Free Support Forum - aspose.com

Shape.ToImage throws an exception for some shapes

Hi,
Shape.ToImage throws “Object reference not set to an instance of an object” exception for some shapes in the attached diagram although Diagram.Save can successfully convert the diagram to an image.
ToImage.zip (36.4 KB)

@dmbk

We were able to replicate the issue in our environment while using Aspose.Diagram for .NET 19.9 and have logged it as DIAGRAMNET-51716 in our issue tracking system for the sake of correction. We will further look into it and keep you posted with the status of its resolution. Please spare us little time.

We are sorry for the inconvenience.

@dmbk

Would you please download and try hotfix (Aspose.Diagram for .NET 19.9) which includes fix against DIAGRAMNET-51716 . In case you still face any issue, please feel free to let us know.

It works. Thank you.

1 Like

The issues you have found earlier (filed as DIAGRAMNET-51716) have been fixed in Aspose.Diagram for .NET 19.10.