# GrapeCity.ActiveReports.Document.SectionDocument.Printer

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Document_SectionDocument_Printer_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Printer*">Printer Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Document_SectionDocument_Printer_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Printer*"></a>
<h4 id="GrapeCity_ActiveReports_Document_SectionDocument_Printer" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Printer">Printer</h4>
<div class="markdown level1 summary"><p>Gets a value reprsenting the printer properties for report printing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public Printer Printer { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Printing.Printer.html">Printer</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.Printer.html#GrapeCity_ActiveReports_Document_SectionDocument_Printer">Printer</a> value that represents settings for a printer.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Document_SectionDocument_Printer_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting the Printer.PrinterName to the <code>string.Empty</code> value does not depend on the settings of the particular printer.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Document_SectionDocument_Printer_examples">Examples</h5>
<p>Set a specific printer</p>
<pre><code class="lang-csharp">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();</code></pre>
<p>Set default printer</p>
<pre><code class="lang-csharp">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);</code></pre>

</div>
