Thank you for writing us.
The method you are using is obsolete as of our latest release. If you want to export the diagram, you can call the ExportToImage
method without arguments. All shapes and connections are exported. Please refer to the code snippet below:
sender, EventArgs e)
Image image =
In the attachments
you can find the sample too.
Should you have further questions, I would be glad to help.