See Also

Document Class  | Document Members  | Printer class

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Printer Property

Gets a reference to the document's printer settings.

[Visual Basic]
Public ReadOnly Property Printer As Printer
[C#]
public Printer Printer {get;}

Return Type

A DataDynamics.ActiveReports.Document.Printer value that represents the current document printing options.

Remarks

Use this property to set the printer options before displaying a print dialog or directly printing the document to the printer with the specified options.

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  | Printer class

 

 


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