ActiveReports.Viewer3 Request technical support
Printer Property
See Also  Example


Gets a reference to the document's printer settings.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Printer As Printer
Visual Basic (Usage)Copy Code
Dim instance As Document
Dim value As Printer
 
value = instance.Printer
C# 
public Printer Printer {get;}

Return Value

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

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);
}
Visual BasicCopy 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)
End Sub

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.

See Also