Gets a PrintDocument object that can be used to render the report to a printer or into a print preview control.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[BrowsableAttribute(false)]
public PrintDocument Document { get; }
Visual Basic
<BrowsableAttribute(False)> _
Public ReadOnly Property Document As PrintDocument
	Get

Examples

The examples below show how you can use the Document property to print the report or show it in a PrintPreviewDialog control.
Copy CodeC#
// print the report to the default printer
_c1r.Document.Print();

// show the report in a PrintPreviewDialog
PrintPreviewDialog p = new PrintPreviewDialog():
p.Document = _c1r.Document;
p.ShowDialog();

See Also