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

Free Support Forum - aspose.com

Aspose.Diagram always throw exception when open an existed visio file

I download the example. But when I run the ExportPageToImage sample. It always throw an exception when execute the below code:

Diagram diagram = new Diagram(dataDir + “ExportPageToImage.vsd”);

The exception message is like below:
Error in element VisioDocument in \VisioDocument. Index was out of range. Must be non-negative and less than the size of the collection.

But it works when I open the visio file which created by myself.


Thank you for contacting support. Please provide us your problematic Visio diagrams in this forum thread. We will investigate and reply you accordingly. You can make a zip of the problematic diagrams and attach to your reply.

We’re looking forward to help you.

The problematic visio file is in the exapmle package.


Thank you for posting sample Visio diagrams. We have tested them against the latest build of Aspose.Diagram for .NET 5.6.0 and did not notice any error message. We have attached the resultant documents (zip file) for your reference. Please download and use the latest version of Aspose.Diagram for .NET 5.6.0.

We hope, this helps. Please let us know in case of any ambiguity or questions.