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.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Document
Dim showPrintDialog As Boolean
Dim showPrintProgressDialog As Boolean
Dim usePrintingThread As Boolean
Dim value As Boolean
value = instance.Print(showPrintDialog, showPrintProgressDialog, usePrintingThread)
|
Parameters
- showPrintDialog
- Specifies whether or not the Print dialog should be shown.
- showPrintProgressDialog
- Specifies whether or not the PrintProgress dialog should be shown.
- usePrintingThread
Specifies whether the printing is done in a separate thread or in the same thread.
If printing is done in a separate thread and the application is shut down right after the print call, the separate thread will die before the report is printed.
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.ReportStart
Me.Document.Print(False, False, False)
End Sub |
Remarks
See Also