Convert Visio to HTML format

Esporta da Visio a HTML

This article explains how to export a Microsoft Visio diagram to HTML using Aspose.Diagram for Python via .NET API.

Use the Diagram class constructor to read the diagram files and the Save method to export the diagram to any supported image format. Developers can save resultant HTML in the local storage or directly to a stream instance.

  1. Save resultant HTML in the local storage.
  2. Save resultant HTML in a stream instance.

The image below shows a VSD file about to be saved to PNG format. You can use other diagram formats (VSDX, VSDM, VSTX, VSSX, VSS, VSSM, VDX, VST, VSTX, VDX, VTX or VSX) as well.

Inserisci diagram.
cose da fare:immagine_alt_testo
In order to export VSD diagram to HTML, perform the following steps:
  1. Creare un’istanza della classe Diagram.
  2. Call the Dagram class' Save method and set HTML as the output format.

Save resultant HTML in the local storage

Il file risultante può essere salvato passando una stringa di percorso completa, inclusi il nome file e l’estensione, ad esempio @“c:\temp\MyOutput.html”.

Save Resultant HTML in Local Storage Programming Sample