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.