Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active May 20, 2022 20:43
Show Gist options
  • Save aspose-com-gists/472aab7ad3692c049b18216df47877d5 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/472aab7ad3692c049b18216df47877d5 to your computer and use it in GitHub Desktop.
Convert VSD VSDX to VTX Visio Diagram File in C# .NET
// Load the input Visio diagram
Diagram diagram = new Diagram("Input.vsd");
// Create an object of the DiagramSaveOptions class
DiagramSaveOptions options = new DiagramSaveOptions();
options.SaveFormat = SaveFileFormat.Vtx;
// Save the output VTX file
diagram.Save("Output.vtx", options);
// Load the input Visio diagram
Diagram diagram = new Diagram("Input.vsdx");
// Create an object of the DiagramSaveOptions class
DiagramSaveOptions options = new DiagramSaveOptions();
options.SaveFormat = SaveFileFormat.Vtx;
// Save the output VTX file
diagram.Save("Output.vtx", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment