When I try to export... PNG works, XML works, but Visio and PDF fail. In all cases I am using a Windows SaveFileDialog, and the same diagram, but it isn't a single diagram that fails, it seems like all of them.
The PDF Export gives this:
System.TypeInitializationException: The type initializer for 'MindFusion.Pdf.Globals' threw an exception. ---> System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck)
at System.IO.Path.GetDirectoryName(String path)
at MindFusion.Pdf.Globals..cctor()
--- End of inner exception stack trace ---
at MindFusion.Pdf.PdfGraphics..ctor(Image img, String FilePath, GraphicsUnit gu, RectangleF layoutRect)
at MindFusion.Pdf.PdfGraphics..ctor(RectangleF rect, String FilePath, GraphicsUnit gu)
at MindFusion.Diagramming.Wpf.Export.PdfExporter.x12cb12b5d2cad53d(String xc15ea0179eb95a0e, Rect x26545669838eb36e)
at MindFusion.Diagramming.Wpf.Export.PdfExporter.Export(Diagram diagram, String filePath)
I'm using a windows SaveFileDialog to get the path... so I know the path is valid. Even if I try to save directly to "C:\new.pdf", it fails claiming the path is not of a legal form.
The Visio Export gives this error:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at MindFusion.Diagramming.Wpf.Export.VisioExporter.Export(Diagram diagram, String vdxPathName)
I have no idea what index it claims is outside the bounds.