Reports for WinForms | ComponentOne
Working with C1MultiDocument / Exporting a C1MultiDocument File
In This Topic
    Exporting a C1MultiDocument File
    In This Topic

    C1MultiDocument can be exported to most formats using any of the Export method overloads. For example, in the following example the C1MultiDocument will be exported to a PDF file. The Boolean value, True, indicates that a progress dialog box should be shown.

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1MultiDocument1.Export("C:\exportedfile.pdf", True)
    

    To write code in C#

    C#
    Copy Code
    this.c1MultiDocument1.Export(@"C:\exportedfile.pdf", true);
    

    If you include the above code in a button's Click event handler, the C1MultiDocument's content will be exported to a PDF file when the button is clicked at run time.