[]
Gets a value reprsenting the printer properties for report printing.
[Browsable(false)]
public Printer Printer { get; }
Type | Description |
---|---|
Printer | A Printer value that represents settings for a printer. |
Setting the Printer.PrinterName to the string.Empty
value does not depend on the settings of the particular printer.
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);