# GrapeCity.ActiveReports.SectionReport.ParentReport

## Content

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



<h1 id="GrapeCity_ActiveReports_SectionReport_ParentReport_" data-uid="GrapeCity.ActiveReports.SectionReport.ParentReport*">ParentReport Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_ParentReport_" data-uid="GrapeCity.ActiveReports.SectionReport.ParentReport*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_ParentReport" data-uid="GrapeCity.ActiveReports.SectionReport.ParentReport">ParentReport</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating the parent report.</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 SectionReport ParentReport { 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.SectionReport.html">SectionReport</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.SectionReport.html">SectionReport</a> object that references the parent report.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_ParentReport_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Allows to access to parent report from subreport.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_ParentReport_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
XmlTextReader xtr = new XmlTextReader(reportName);
sectionReport.LoadLayout(xtr);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.Script = @"public void ActiveReport_ReportStart() {if (rpt.ParentReport != null) throw new Exception("The report was not designed to be subreport!")}";
sectionReport.Run();</code></pre>

</div>
