See Also

Document Class  | Document Members  | Overload List

Language

Visual Basic

C#

Show All

showPrintDialog
Specifies whether the Print dialog should be shown.
showPrintProgressDialog
Specifies whether the PrintProgress dialog should be shown.
See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Print(Boolean,Boolean) Method

Sends the document content to the printer, specifying whether print and print progress dialogs will be shown. 

[Visual Basic]
Overloads Public Sub Print( _    ByVal showPrintDialog As Boolean, _    ByVal showPrintProgressDialog As Boolean _ )
[C#]
public void Print(    bool showPrintDialog,    bool showPrintProgressDialog );

Parameters

showPrintDialog
Specifies whether the Print dialog should be shown.
showPrintProgressDialog
Specifies whether the PrintProgress dialog should be shown.

Remarks

Please note that the document does not exist until the report has been run, so reports must be run prior to calling the Print method.

Example

[C#] 

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); 
}

[Visual Basic] 

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)
End Sub

See Also

Document Class  | Document Members  | Overload List

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.