working on it ...

Filters

Explore Public Snippets

Sort by

Found 125 snippets

    public by ADSInfoworld modified Feb 23, 2019  40  0  1  0

    Professional Logo Designing Company in Delhi

    If you are looking for a creative professional Logo Design for your 
    corporate business. We offer Corporate unique Logo Designing services
    and website designing at reasonable cost. We don’t use templates; 
    We are Logo designing company that design creative logo for any type 
    of business that give a unique name fame in industry as per client 
    requirements.
    
    More info visit https://adsinfoworld.com/logo-designing-company
    

    public by JoseAlbertoLopezEsteva modified Jul 20, 2018  359  0  5  0

    Servlet 3.1 deployment descriptor

    Java EE 7 XML schema, namespace is http://xmlns.jcp.org/xml/ns/javaee/
    <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
    		 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
             version="3.1">
    </web-app>
    

    public by lyouna85 modified Mar 4, 2017  345  7  3  0

    promo kc

    """KAKAKCASH | Agent Sportbook,Casino Online,Sabung Ayam Online Terpercaya Di Asia.
    Selamat Bergabung Di KAKAKCASH ,KAKAKCASH Merupakan Agent Sportbook,Casino Online,Poker Online,Togel Online ,Sabung Ayam Online Terpercaya Dan Terbesar Di Asia.
    
    
    
    Produk Yang Kami Tawarkan :
    
    -SPORTBOOK :
    * SBOBET
    * MAXBET
    * CMD368
    -CASINO :
    * SBOBET CASINO
    * GD88
    * CBO855
    * ION CASINO
    -POKER
    -TOGEL
    -TANGKAS NET
    -SABUNG AYAM ONLINE
    
    
    Kelebihan Dari Kami : 
    
    * Pendaftaran User ID Baru Tidak Di Pungut Biaya 
    * Minimal Deposit & Withdraw Rp.100.000,-
    * Proses Deposit & Withdraw Kurang Dari 3 Menit Saja
    * Pelayanan CS Kami Yang Ramah & Sopan Siap Melayani 24 Jam Nonstop
    * Data & Privasi Pemain Di Jamin Safety
    * Kami Menyediakan 5 BANK Yaitu : BCA - MANDIRI - BRI - BNI - DANAMON
    * Bonus Cashback & Rollingan Di Bagikan Setiap Hari Senin 
    
    
    Segera Bergabung Di Website Kami KAKAKCASH
    Nikmati Layanan Customer Service Di KAKAKCASH Yang Ramah & Profesional
    Untuk Info Lebih Lanjut Silahkan Hubungi Kami Melalui : 
    
    * LIVE CHAT TERSEDIA , LAYANAN 24 JAM NONSTOP
    * YM : cs_kakakcash
    * BBM : 2B10FD92
    * SKYPE : CS_KakakCash
    * PHONE : +855964898204
    * FB : kakakcash
    * FANSPAGE : kakakcash"""

    public by sherazam modified Jul 27, 2016  120618  0  5  0

    How to Set Line Spacing of a Paragraph in an Excel Shape or Textbox inside .NET Apps

    This technical tip shows how to Set Line Spacing of the Paragraph in a Shape or Textbox in .NET applications. You can set the line space of the paragraph, its space before and space after using the TextParagraph.LineSpace, TextParagraph.SpaceBefore and TextParagraph.SpaceAfter respectively. The following example shows how to Set Line Spacing of the
    // Enter here the actual content of the snippet.            
    
    //[C# Code]
     
    // For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
    // The path to the documents directory.
    string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
    
    // Create a workbook
    Workbook wb = new Workbook();
    
    // Access first worksheet
    Worksheet ws = wb.Worksheets[0];
    
    // Add text box inside the sheet
    ws.Shapes.AddTextBox(2, 0, 2, 0, 100, 200);
    
    // Access first shape which is a text box and set is text
    Shape shape = ws.Shapes[0];
    shape.Text = "Sign up for your free phone number.\nCall and text online for free.";
    
    // Acccess the first paragraph
    TextParagraph p = shape.TextBody.TextParagraphs[1];
    
    // Set the line space
    p.LineSpaceSizeType = LineSpaceSizeType.Points;
    p.LineSpace = 20;
    
    // Set the space after
    p.SpaceAfterSizeType = LineSpaceSizeType.Points;
    p.SpaceAfter = 10;
    
    // Set the space before
    p.SpaceBeforeSizeType = LineSpaceSizeType.Points;
    p.SpaceBefore = 10;
    
    // Save the workbook in xlsx format
    wb.Save(dataDir + "output_out_.xlsx", SaveFormat.Xlsx); 
    
    //[VB.NET Code]
    
    ' For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
    ' The path to the documents directory.
    Dim dataDir As String = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)
    
    ' Create a workbook
    Dim wb As New Workbook()
    
    ' Access first worksheet
    Dim ws As Worksheet = wb.Worksheets(0)
    
    ' Add text box inside the sheet
    ws.Shapes.AddTextBox(2, 0, 2, 0, 100, 200)
    
    ' Access first shape which is a text box and set is text
    Dim shape As Shape = ws.Shapes(0)
    shape.Text = "Sign up for your free phone number." & vbLf & "Call and text online for free."
    
    ' Acccess the first paragraph
    Dim p As TextParagraph = shape.TextBody.TextParagraphs(1)
    
    ' Set the line space
    p.LineSpaceSizeType = LineSpaceSizeType.Points
    p.LineSpace = 20
    
    ' Set the space after
    p.SpaceAfterSizeType = LineSpaceSizeType.Points
    p.SpaceAfter = 10
    
    ' Set the space before
    p.SpaceBeforeSizeType = LineSpaceSizeType.Points
    p.SpaceBefore = 10
    
    ' Save the workbook in xlsx format
    wb.Save(dataDir & Convert.ToString("output_out_.xlsx"), SaveFormat.Xlsx) 
    
    

    public by sherazam modified Jun 8, 2016  182315  1  5  0

    How to Delete Messages in Bulk or One by One from Outlook PST in .NET Apps

    This technical tip explains how .NET developers can Delete Messages from outlook PST. Add Messages to PST Files showed how to add messages to PST files. It is, of course, also possible to delete items (contents) from a PST file and it may also be desirable to delete messages in bulk. Items from a PST file can be deleted using the FolderInfo.DeleteC
    // Enter here the actual content of the snippet.            
    //Deleting Messages from PST Files
    
    //The code snippets below delete messages from a PST file's Sent subfolder.
    
    //[C# Code Sample]
    
    // Get the Sent items folder
    FolderInfo folderInfo = pst.GetPredefinedFolder(StandardIpmFolder.SentItems);
    MessageInfoCollection msgInfoColl = folderInfo.GetContents();
    foreach (MessageInfo msgInfo in msgInfoColl)
    {
        Console.WriteLine(msgInfo.Subject + ": " + msgInfo.EntryIdString);
        if (msgInfo.Subject.Equals("some delete condition") == true)
        {
            // Delete this item
            folderInfo.DeleteChildItem(msgInfo.EntryId);
            Console.WriteLine("Deleted this message");
        }
    }
     
    //[VB.NET Code Sample]
    
    ' Get the Sent items folder
    Dim folderInfo As FolderInfo = pst.GetPredefinedFolder(StandardIpmFolder.SentItems)
    Dim msgInfoColl As MessageInfoCollection = folderInfo.GetContents()
    For Each msgInfo As MessageInfo In msgInfoColl
    	Console.WriteLine(msgInfo.Subject & ": " & msgInfo.EntryIdString)
    	If msgInfo.Subject.Equals("some delete condition") = True Then
    		' Delete this item
    		folderInfo.DeleteChildItem(msgInfo.EntryId)
    		Console.WriteLine("Deleted this message")
    	End If
    Next msgInfo
    
    //Delete Items in Bulk from PST File
    
    //Aspose.Email API can be used to delete items in bulk from a PST file. This is achieved using the DeleteChildItems method which accepts a list of Entry ID items referring to the items to be deleted.
    
    //[C# Code Sample]
    
    using (PersonalStorage pst = PersonalStorage.FromFile(@"test.pst"))
    {
        FolderInfo inbox = pst.RootFolder.GetSubFolder("Inbox");
        
        // find messages having From = "someuser@domain.com" 
        PersonalStorageQueryBuilder queryBuilder = new PersonalStorageQueryBuilder();
        queryBuilder.From.Contains("someuser@domain.com");
        MessageInfoCollection messages = inbox.GetContents(queryBuilder.GetQuery());
        IList<string> deleteList = new List<string>();
        foreach (MessageInfo messageInfo in messages)
        {
            deleteList.Add(messageInfo.EntryIdString);
        }
        
        // delete messages having From = "someuser@domain.com"
        inbox.DeleteChildItems(deleteList);
    }
    
    //[VB.NET Code Sample]
    
    Using pst As PersonalStorage = PersonalStorage.FromFile("test.pst")
    	Dim inbox As FolderInfo = pst.RootFolder.GetSubFolder("Inbox")
    
    	' find messages having From = "someuser@domain.com" 
    	Dim queryBuilder As New PersonalStorageQueryBuilder()
    	queryBuilder.From.Contains("someuser@domain.com")
    	Dim messages As MessageInfoCollection = inbox.GetContents(queryBuilder.GetQuery())
    	Dim deleteList As IList(Of String) = New List(Of String)()
    	For Each messageInfo As MessageInfo In messages
    		deleteList.Add(messageInfo.EntryIdString)
    	Next
    
    	' delete messages having From = "someuser@domain.com"
    	inbox.DeleteChildItems(deleteList)
    End Using
    
    

    public by sherazam modified May 25, 2016  2624  8  5  0

    How to Convert Large Text Files to PDF inside .NET Applications

    This technical tip shows how to convert a text file to PDF inside .NET applications. We are often asked if we can quickly provide some code which can accomplish this task and save them the effort of going through the documentation. So for the benefit of everyone, we present here a simple example which can be used as it is to easily and efficiently
    // Enter here the actual content of the snippet.            
    //Please take a look over the following code snippet for converting a text file to PDF
    
    //[C# Code Sample]
     
    
    //read the source text file
    System.IO.TextReader tr = new StreamReader("test.txt");
    
    //Instantiate Pdf pbject by calling its empty constructor
    Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
    
    //Create a new section in the Pdf object
    Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
    
    //Create a new text paragraph and pass the text to its constructor as argument
    Aspose.Pdf.Generator.Text t2 = new Aspose.Pdf.Generator.Text(tr.ReadToEnd());
    sec1.Paragraphs.Add(t2);
    
    pdf1.Save("test.Pdf");
    
    //[VB.NET Code Sample]
     
    
    Dim tr As System.IO.TextReader = New StreamReader("test.txt")
    
    'Instantiate Pdf pbject by calling its empty constructor
    Dim pdf1 As Aspose.Pdf.Generator.Pdf = New Aspose.Pdf.Generator.Pdf()
    
    'Create a new section in the Pdf object
    Dim sec1 As Aspose.Pdf.Generator.Section = pdf1.Sections.Add()
    
    'Create a new text paragraph and pass the text to its constructor as argument
    Dim t2 As Aspose.Pdf.Generator.Text = New Aspose.Pdf.Generator.Text(tr.ReadToEnd())
    
    sec1.Paragraphs.Add(t2)
    
    pdf1.Save("test.Pdf")
    
    //Converting Large Text files to PDF
    
    //[C# Code Sample]
     
    
    //Instantiate Pdf pbject by calling its empty constructor
    Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
    //Create a new section in the Pdf object
    Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
    
    //Specify the location of input text file
    String FILE_NAME = "d:/pdftest/LargeText.txt";
    
    if (File.Exists(FILE_NAME))
       {
           
        System.IO.TextReader objReader =  new System.IO.StreamReader(FILE_NAME);
        // Read the file till the end of the file has come
        do 
        {
         //Create a new text paragraph & pass text to its constructor as argument
         Aspose.Pdf.Generator.Text t2 = new Aspose.Pdf.Generator.Text(objReader.ReadLine());
         // add the text object to paragraphs collection of section
         sec1.Paragraphs.Add(t2);
    
         // Read till the end of file
         }while(objReader.Peek() != -1);
    
       // Close the StreamReader object
       objReader.Close();
       }
       else
       MessageBox.Show("File Does Not Exist");
        
    // Save the PDF file
    pdf1.Save("d:/pdftest/large_textfile.pdf");
    
    //[VB.NET Code Sample]
     
    
    'Instantiate Pdf pbject by calling its empty constructor
    Dim pdf1 As Aspose.Pdf.Generator.Pdf = New Aspose.Pdf.Generator.Pdf()
    
    'Create a new section in the Pdf object
    Dim sec1 As Aspose.Pdf.Generator.Section = pdf1.Sections.Add()
    
    ' Specify the location of input text file
    Dim FILE_NAME As String = "d:/pdftest/LargeText.txt"
    
    If System.IO.File.Exists(FILE_NAME) = True Then
    
        Dim objReader As New System.IO.StreamReader(FILE_NAME)
        ' Read the file till the end of the file has come
        Do While objReader.Peek() <> -1
            'Create a new text paragraph and pass text to its constructor as argument
            Dim t2 As Aspose.Pdf.Generator.Text = New Aspose.Pdf.Generator.Text(objReader.ReadLine())
            ' add the text object to paragraphs collection of section
            sec1.Paragraphs.Add(t2)
        Loop
        ' Close the StreamReader object
        objReader.Close()
    Else
        MsgBox("File Does Not Exist")
    End If
    
    ' Save the PDF file
    pdf1.Save("d:/pdftest/large_textfile.pdf")
    
    

    public by sherazam modified May 4, 2016  2480  1  5  0

    How to Convert Primitive Object to a Triangle Mesh with Custom Memory Layout in .NET Apps

    This Technical tip explains how .NET developers can convert primitive object to a triangle mesh with custom memory layout. Aspose.3D for .NET API allows developers to convert any primitive object to a triangle mesh with custom memory layout. The primitives include many of the most basic and most used objects like box, sphere, plane, cylinder, and t
    // Enter here the actual content of the snippet.            
    //This code example converts a Sphere to triangle mesh with custom memory layout.
    
    // [C# Code Sample]
    
    [StructLayout(LayoutKind.Sequential)]
    struct MyVertex
    {
        [Semantic(VertexFieldSemantic.Position)]
        FVector3 position;
        [Semantic(VertexFieldSemantic.Normal)]
        FVector3 normal;
    }
    public void TypedTriMesh()
    {
        Mesh sphere = (new Sphere()).ToMesh();
        //convert any mesh into typed TriMesh
        var myMesh = TriMesh<MyVertex>.FromMesh(sphere);
        //Get the vertex data in customized vertex structure.
        MyVertex[] vertex = myMesh.VerticesToTypedArray();
        //get the 32bit and 16bit indices
        int[] indices32bit;
        ushort[] indices16bit;
        myMesh.IndicesToArray(out indices32bit);
        myMesh.IndicesToArray(out indices16bit);
        using (MemoryStream ms = new MemoryStream())
        {
            //or we can write the vertex directly into stream like:
            myMesh.WriteVerticesTo(ms);
            //the indice data can be directly write to stream, we support 32-bit and 16-bit indice.
            myMesh.Write16bIndicesTo(ms);
            myMesh.Write32bIndicesTo(ms);
        }
        Console.WriteLine("Indices = {0}, Actual vertices = {1}, vertices before merging = {2}", myMesh.IndicesCount, myMesh.VerticesCount, myMesh.UnmergedVerticesCount);
        Console.WriteLine("Total bytes of vertices in memory {0}bytes", myMesh.VerticesSizeInBytes);
    
    }
    
    //[VB.NET Code Sample]
    
    <StructLayout(LayoutKind.Sequential)> Structure MyVertex
        <Semantic(VertexFieldSemantic.Position)>
        Private position As FVector3
        <Semantic(VertexFieldSemantic.Normal)>
        Private normal As FVector3
    End Structure
    Public Sub TypedTriMesh()
        Dim sphere As Mesh = (New Sphere()).ToMesh()
        'convert any mesh into typed TriMesh
        Dim myMesh = TriMesh(Of MyVertex).FromMesh(sphere)
        'Get the vertex data in customized vertex structure.
        Dim vertex As MyVertex() = myMesh.VerticesToTypedArray()
        'get the 32bit and 16bit indices
        Dim indices32bit As Integer()
        Dim indices16bit As UShort()
        myMesh.IndicesToArray(indices32bit)
        myMesh.IndicesToArray(indices16bit)
        Using ms As New MemoryStream()
            'or we can write the vertex directly into stream like:
            myMesh.WriteVerticesTo(ms)
            'the indice data can be directly write to stream, we support 32-bit and 16-bit indice.
            myMesh.Write16bIndicesTo(ms)
            myMesh.Write32bIndicesTo(ms)
        End Using
        Console.WriteLine("Indices = {0}, Actual vertices = {1}, vertices before merging = {2}", myMesh.IndicesCount, myMesh.VerticesCount, myMesh.UnmergedVerticesCount)
        Console.WriteLine("Total bytes of vertices in memory {0}bytes", myMesh.VerticesSizeInBytes)
        End Sub
    
    //This code example converts a Box to triangle mesh with custom memory layout.
    
    // [C# Code Sample]
    
    // get mesh of the Box
    Mesh box = (new Box()).ToMesh();
    //create a customized vertex layout
    VertexDeclaration vd = new VertexDeclaration();
    VertexField position = vd.AddField(VertexFieldDataType.FVector4, VertexFieldSemantic.Position);
    vd.AddField(VertexFieldDataType.FVector3, VertexFieldSemantic.Normal);
    // get a triangle mesh
    TriMesh triMesh = TriMesh.FromMesh(box);
    
    //[VB.NET Code Sample]
    
    ' get mesh of the Box
    Dim box As Mesh = (New Box()).ToMesh()
    'create a customized vertex layout
    Dim vd As New VertexDeclaration()
    Dim position As VertexField = vd.AddField(VertexFieldDataType.FVector4, VertexFieldSemantic.Position)
    vd.AddField(VertexFieldDataType.FVector3, VertexFieldSemantic.Normal)
    ' get a triangle mesh
    Dim triMesh As TriMesh = TriMesh.FromMesh(box)
    
    

    public by sherazam modified Apr 27, 2016  2641  2  5  0

    How to Control Export of Hidden Visio Pages to PDF HTML Image & Other Formats using .NET

    This tutorial shows how .NET developers can Control the Export of Hidden Visio Pages on Saving inside .NET applications. Aspose.Diagram for .NET API allows developers to include or exclude hidden Visio pages on saving diagram to PDF, HTML, Image (PNG, JPEG, GIF), SVG, and XPS files.
    // Enter here the actual content of the snippet.            //Set the Export Option for PDF
    
    // [C# Code Sample]
    
    string dataDir = @"c:\temp\";
    // load an existing Visio
    Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
    // get a particular page
    Page page = diagram.Pages.GetPage("Page-2");
    // set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.False;
    
    // initialize PDF save options
    PdfSaveOptions options = new PdfSaveOptions();
    // set export option of hidden Visio pages
    options.ExportHiddenPage = false;
    
    //Save the Visio diagram
    diagram.Save(dataDir + "Output.pdf", options);
    
    // [VB.NET Code Sample]
    
    Dim dataDir As String = "c:\temp\"
    ' load an existing Visio
    Dim diagram As New Diagram(dataDir & Convert.ToString("Drawing1.vsdx"))
    ' get a particular page
    Dim page As Page = diagram.Pages.GetPage("Page-2")
    ' set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.[False]
    
    ' initialize PDF save options
    Dim options As New PdfSaveOptions()
    ' set export option of hidden Visio pages
    options.ExportHiddenPage = False
    
    'Save the Visio diagram
    diagram.Save(dataDir & Convert.ToString("Output.pdf"), options)
    
    //Set the Export Option for HTML
    
    // [C# Code Sample]
    
    string dataDir = @"c:\temp\";
    // load an existing Visio
    Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
    // get a particular page
    Page page = diagram.Pages.GetPage("Page-2");
    // set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.False;
    
    // 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 + "Output.html", options);
    
    // [VB.NET Code Sample]
    
    Dim dataDir As String = "c:\temp\"
    ' load an existing Visio
    Dim diagram As New Diagram(dataDir & Convert.ToString("Drawing1.vsdx"))
    ' get a particular page
    Dim page As Page = diagram.Pages.GetPage("Page-2")
    ' set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.[False]
    
    ' initialize PDF save options
    Dim options As New HTMLSaveOptions()
    ' set export option of hidden Visio pages
    options.ExportHiddenPage = False
    
    'Save the Visio diagram
    diagram.Save(dataDir & Convert.ToString("Output.html"), options)
     
    
    //Set the Export Option for Image
    
    // [C# Code Sample]
    
    string dataDir = @"c:\temp\";
    // load an existing Visio
    Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
    // get a particular page
    Page page = diagram.Pages.GetPage("Page-2");
    // set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.False;
    
    // initialize PDF save options
    ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.JPEG);
    // set export option of hidden Visio pages
    options.ExportHiddenPage = false;
    
    //Save the Visio diagram
    diagram.Save(dataDir + "Output.jpeg", options);
     
    // [VB.NET Code Sample]
    
    Dim dataDir As String = "c:\temp\"
    ' load an existing Visio
    Dim diagram As New Diagram(dataDir & Convert.ToString("Drawing1.vsdx"))
    ' get a particular page
    Dim page As Page = diagram.Pages.GetPage("Page-2")
    ' set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.[False]
    
    ' initialize PDF save options
    Dim options As New ImageSaveOptions(SaveFileFormat.JPEG)
    ' set export option of hidden Visio pages
    options.ExportHiddenPage = False
    
    'Save the Visio diagram
    diagram.Save(dataDir & Convert.ToString("Output.jpeg"), options)
     
    
    //Set the Export Option for SVG
    
    // [C# Code Sample]
    
    string dataDir = @"c:\temp\";
    // load an existing Visio
    Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
    // get a particular page
    Page page = diagram.Pages.GetPage("Page-2");
    // set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.False;
    
    // initialize PDF save options
    SVGSaveOptions options = new SVGSaveOptions();
    // set export option of hidden Visio pages
    options.ExportHiddenPage = false;
    
    //Save the Visio diagram
    diagram.Save(dataDir + "Output.svg", options);
     
    
    // [VB.NET Code Sample]
    
    Dim dataDir As String = "c:\temp\"
    ' load an existing Visio
    Dim diagram As New Diagram(dataDir & Convert.ToString("Drawing1.vsdx"))
    ' get a particular page
    Dim page As Page = diagram.Pages.GetPage("Page-2")
    ' set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.[False]
    
    ' initialize PDF save options
    Dim options As New SVGSaveOptions()
    ' set export option of hidden Visio pages
    options.ExportHiddenPage = False
    
    'Save the Visio diagram
    diagram.Save(dataDir & Convert.ToString("Output.svg"), options)
     
    
    //Set the Export Option for XPS
    
    // [C# Code Sample]
    
    string dataDir = @"c:\temp\";
    // load an existing Visio
    Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
    // get a particular page
    Page page = diagram.Pages.GetPage("Page-2");
    // set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.False;
    
    // initialize PDF save options
    XPSSaveOptions options = new XPSSaveOptions();
    // set export option of hidden Visio pages
    options.ExportHiddenPage = false;
    
    //Save the Visio diagram
    diagram.Save(dataDir + "Output.xps", options);
     
    
    // [VB.NET Code Sample]
    
    Dim dataDir As String = "c:\temp\"
    ' load an existing Visio
    Dim diagram As New Diagram(dataDir & Convert.ToString("Drawing1.vsdx"))
    ' get a particular page
    Dim page As Page = diagram.Pages.GetPage("Page-2")
    ' set Visio page visiblity
    page.PageSheet.PageProps.UIVisibility.Value = BOOL.[False]
    
    ' initialize PDF save options
    Dim options As New XPSSaveOptions()
    ' set export option of hidden Visio pages
    options.ExportHiddenPage = False
    
    'Save the Visio diagram
    diagram.Save(dataDir & Convert.ToString("Output.xps"), options)
    
    • Public Snippets
    • Channels Snippets