ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Working with C1MultiDocument > Exporting a C1MultiDocument File

Exporting a C1MultiDocument File

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.

      Visual Basic

Me.C1MultiDocument1.Export("C:\exportedfile.pdf", True)

      C#

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.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.