ActiveReports 6 Online Help
Printer Property
Example 

Gets a reference to the document's printer settings.
Syntax
'Declaration
 
Public ReadOnly Property Printer As Printer
public Printer Printer {get;}

Property Value

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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Document Class
Document Members
Printer class

Send Feedback