ActiveReports Developer 7
Printer Property
See Also  Example
GrapeCity.ActiveReports.Document.v7 Assembly > GrapeCity.ActiveReports.Document Namespace > SectionDocument Class : Printer Property

Glossary Item Box

Gets a reference to the document's printer settings.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Printer As Printer
C# 
public Printer Printer {get;}

Property Value

A GrapeCity.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#Copy Code
private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs)
{
    this.Document.Printer.PrinterSettings.Copies=5;
}

private void SectionReport1_ReportEnd(object sender, System.EventArgs eArgs)
{    
    this.Document.Print(false, false);
}
Visual BasicCopy Code
Private Sub SectionReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.Document.Printer.PrinterSettings.Copies = 5
End Sub

Private Sub SectionReport1_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart   
    Me.Document.Print(False, False)
End Sub

See Also