Aspose.Diagram.Examples.CSharp.Working_with_Pages.ExportOfHiddenVisioPagesToHTML.Run C# (CSharp) Méthode

Run() public static méthode

public static Run ( ) : void
Résultat void
        public static void Run() 
        {
            try
            {
                // ExStart:ExportOfHiddenVisioPagesToHTML
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_Intro();

                // Load an existing Visio
                Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
                // Get a particular page
                Page page = diagram.Pages.GetPage("Flow 2");
                // Set Visio page visiblity
                page.PageSheet.PageProps.UIVisibility.Value = BOOL.True;

                // Initialize PDF save options
                HTMLSaveOptions options = new HTMLSaveOptions();
                // Set export option of hidden Visio pages
                options.ExportHiddenPage = false;

                // Save the Visio diagram
                diagram.Save(dataDir + "ExportOfHiddenVisioPagesToHTML_out.html", options);
                // ExEnd:ExportOfHiddenVisioPagesToHTML
            }
            catch (System.Exception ex)
            {
                System.Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx.");
            }
        }
    }
ExportOfHiddenVisioPagesToHTML