# GrapeCity.ActiveReports.SectionReportModel.SubReport

## Content

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



  <h1 id="GrapeCity_ActiveReports_SectionReportModel_SubReport" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport" class="text-break">SubReport Class
</h1>
  <div class="markdown level0 summary"><p>Prints a linked report object as part of the current report. Subreports are linked using the Report property.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.ARControl.html">ARControl</a></div>
    <div class="level2"><span class="xref">SubReport</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.Controls.Design.IPersistControl.html">IPersistControl</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.html">GrapeCity.ActiveReports.SectionReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="GrapeCity_ActiveReports_SectionReportModel_SubReport_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[DefaultSize(3, 1)]
public sealed class SubReport : ARControl, IComponent, IDisposable, IPersistControl</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport__ctor" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.-ctor.html#GrapeCity_ActiveReports_SectionReportModel_SubReport__ctor">SubReport()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.html">SubReport</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_CanGrow" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.CanGrow">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.CanGrow.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_CanGrow">CanGrow</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether ActiveReports should increase the height of the control based on its content.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_CanShrink" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.CanShrink">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.CanShrink.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_CanShrink">CanShrink</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether ActiveReports should decrease the height of the field based on its value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_CloseBorder" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.CloseBorder">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.CloseBorder.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_CloseBorder">CloseBorder</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether or not subreport borders will be closed on every page on which the subreport is rendered.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_ControlType" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.ControlType">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.ControlType.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_ControlType">ControlType</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_DataField" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.DataField">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.DataField.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_DataField">DataField</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the field name from the data source to bind to the control.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_Report" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.Report">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.Report.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_Report">Report</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a reference to the instance of the report that this control will embed and render as part of the containing section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_ReportName" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.ReportName">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.ReportName.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_ReportName">ReportName</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the name of the subreport.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_Dispose_System_Boolean_" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.Dispose.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases unmanaged and - optionally - managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_ReadXml_System_Xml_XmlNode_" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.ReadXml(System.Xml.XmlNode)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.ReadXml.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_ReadXml_System_Xml_XmlNode_">ReadXml(XmlNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Reads the control from specified XML node.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionReportModel_SubReport_WriteXml_System_Xml_XmlElement_" data-uid="GrapeCity.ActiveReports.SectionReportModel.SubReport.WriteXml(System.Xml.XmlElement)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.SubReport.WriteXml.html#GrapeCity_ActiveReports_SectionReportModel_SubReport_WriteXml_System_Xml_XmlElement_">WriteXml(XmlElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes the control as XML to specified XML node.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
