Sends the document content to the printer.
Overload List
Overload | Description |
Print() | Sends the document content to the printer. |
Print(Boolean,Boolean) | Sends the document content to the printer, specifying whether print and print progress dialogs will be shown. |
Print(Boolean,Boolean,Boolean) | Sends the document content to the printer, specifying whether print and print progress dialogs will be shown, and whether printing will be done in a separate thread. |
Example
C# | Copy Code |
---|
private void rptPrint_ReportStart(object
sender, System.EventArgs eArgs)
{
this.Document.Printer.PrinterSettings.Copies=5;
}
private void rptPrint_ReportEnd(object
sender, System.EventArgs eArgs)
{
this.Document.Print(false, false, false);
} |
Visual Basic | Copy Code |
---|
Private Sub ActiveReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
Me.Document.Printer.PrinterSettings.Copies = 5
End Sub
Private Sub rptPrint_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportEnd
Me.Document.Print(False, False, False)
End Sub |
Remarks
See Also