[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.SectionDocument.Printer

Printer Property

Printer

Gets a value reprsenting the printer properties for report printing.

Declaration
[Browsable(false)]
public Printer Printer { get; }
Property Value
Type Description
Printer

A Printer value that represents settings for a printer.

Remarks

Setting the Printer.PrinterName to the string.Empty value does not depend on the settings of the particular printer.

Examples

Set a specific printer

var sectionDocument = new GrapeCity.ActiveReports.Document.SectionDocument();
sectionDocument.Load("Document.rdf");
sectionDocument.Printer.PrinterName = "TheNetworkPrinterName";
sectionDocument.Printer.Landscape = true;
//To call the Print method, add a reference to Viewer.Win or Viewer.WPF
sectionDocument.Print();

Set default printer

var sectionReport = new GrapeCity.ActiveReports.SectionReport();
using (var reader = new System.Xml.XmlTextReader("Report.rpx"))
{
	sectionReport.LoadLayout(reader, out System.Collections.ArrayList error);
}
sectionReport.Document.Printer.PrinterName = String.Empty;
viewer.LoadDocument(sectionReport);