ActiveReports 19 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Document Namespace / PageDocument Class / Printer Property
Example

In This Topic
    Printer Property (PageDocument)
    In This Topic
    Gets a reference to the document's printer settings.
    Syntax
    'Declaration
     
    Public ReadOnly Property Printer As Printer
    public Printer Printer {get;}
    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
    pageReport.Document.Printer.PrinterName = "TheNetworkPrinterName";
    pageReport.Document.Printer.Landscape = true;
    To call the Print method, add a reference to Viewer.Win or Viewer.WPF.
    pageReport.Document.Print();
    See Also