Hello World Esempio
Hello World Esempio
Aspose.Diagram for .NET has rich features to create, open, edit and convert Microsoft Visio files using C# and other .NET languages. It supports a wide set of Visio file formats including VSDX, VDX, VSD, VSX, VTX, VSSX, VSDM, VSSM, VSTM, VDW, VSS, and VST. In addition, it provides the capability to convert Visio Diagrams to a number of formats such as PDF, HTML, XML, SVG, and XAML.
Dopoinstallazione Aspose.Diagram for .NETnel proprio ambiente, è possibile utilizzare i seguenti passaggi per vedere come Aspose.Diagram API viene utilizzato nelle applicazioni .NET.
- Crea un’istanza di un oggetto Diagram
- Utilizzare il metodo Save dell’oggetto di classe Diagram per salvare il file su disco
The following code snippet is a Hello World program to exhibit the working of Aspose.Diagram for .NET API.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_LoadSaveConvert(); | |
// Initialize a Diagram class | |
Diagram diagram = new Diagram(); | |
// Save diagram in the VSDX format | |
diagram.Save(dataDir + "CreateNewVisio_out.vsdx", SaveFileFormat.VSDX); |