# GrapeCity.ActiveReports.PageReportModel.Subreport

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_Subreport" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport" class="text-break">Subreport Class
</h1>
  <div class="markdown level0 summary"><p>Represents a Subreport <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportItem.html">ReportItem</a> which is a separate report contained within the main report definition.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportComponent.html">ReportComponent</a></div>
    <div class="level4"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportItem.html">ReportItem</a></div>
    <div class="level5"><span class="xref">Subreport</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IReportComponent.html">IReportComponent</a></div>
    <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.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_Subreport_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class Subreport : ReportItem, IReportComponent, IComponent, IDisposable, IValidateable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_Subreport_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>If the specified subreport fails to execute properly, an error message is displayed in its place.</p>
</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_PageReportModel_Subreport__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.-ctor.html#GrapeCity_ActiveReports_PageReportModel_Subreport__ctor">Subreport()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.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_PageReportModel_Subreport_InheritStyleSheet" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.InheritStyleSheet">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.InheritStyleSheet.html#GrapeCity_ActiveReports_PageReportModel_Subreport_InheritStyleSheet">InheritStyleSheet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the subreport inherits the containing report's style sheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_MergeTransactions" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.MergeTransactions">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.MergeTransactions.html#GrapeCity_ActiveReports_PageReportModel_Subreport_MergeTransactions">MergeTransactions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the transactions in the subreport are merged with the parent report.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_NoRows" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.NoRows">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.NoRows.html#GrapeCity_ActiveReports_PageReportModel_Subreport_NoRows">NoRows</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a message to display in the subreport if no rows of data are available.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_OverflowName" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.OverflowName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.OverflowName.html#GrapeCity_ActiveReports_PageReportModel_Subreport_OverflowName">OverflowName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the overflow name for the subreport.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_PageName" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.PageName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.PageName.html#GrapeCity_ActiveReports_PageReportModel_Subreport_PageName">PageName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name used for the sheet in Excel exports.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_Parameters" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.Parameters">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.Parameters.html#GrapeCity_ActiveReports_PageReportModel_Subreport_Parameters">Parameters</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the parameters associated with the subreport.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_ReportName" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.ReportName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.ReportName.html#GrapeCity_ActiveReports_PageReportModel_Subreport_ReportName">ReportName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the path to the subreport.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_SubstituteThemeOnSubreport" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.SubstituteThemeOnSubreport">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.SubstituteThemeOnSubreport.html#GrapeCity_ActiveReports_PageReportModel_Subreport_SubstituteThemeOnSubreport">SubstituteThemeOnSubreport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the subreport uses the theme from the current report.</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_PageReportModel_Subreport_GetExpressions" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.GetExpressions">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.GetExpressions.html#GrapeCity_ActiveReports_PageReportModel_Subreport_GetExpressions">GetExpressions()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a list of the expressions contained by this report item.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Subreport_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.Subreport.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.Validate.html#GrapeCity_ActiveReports_PageReportModel_Subreport_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Subreport.html">Subreport</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.GetReportFromComponent.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_GetReportFromComponent_GrapeCity_ActiveReports_PageReportModel_IReportComponent_">RomUtils.GetReportFromComponent(IReportComponent)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.GetReportSectionFromComponent.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_GetReportSectionFromComponent_GrapeCity_ActiveReports_PageReportModel_IReportComponent_">RomUtils.GetReportSectionFromComponent(IReportComponent)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.IsContentPlaceHolder.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_IsContentPlaceHolder_GrapeCity_ActiveReports_PageReportModel_ReportItem_">RomUtils.IsContentPlaceHolder(ReportItem)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.ReportExtensions.GetSelfAndAllDescendants.html#GrapeCity_ActiveReports_Rdl_Tools_ReportExtensions_GetSelfAndAllDescendants_GrapeCity_ActiveReports_PageReportModel_ReportItem_">ReportExtensions.GetSelfAndAllDescendants(ReportItem)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.ReportItemExtensions.GetReportItemTypeName.html#GrapeCity_ActiveReports_Rdl_Tools_ReportItemExtensions_GetReportItemTypeName_GrapeCity_ActiveReports_PageReportModel_ReportItem_">ReportItemExtensions.GetReportItemTypeName(ReportItem)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.ReportItemExtensions.Clone.html#GrapeCity_ActiveReports_Rdl_Tools_ReportItemExtensions_Clone__1___0_">ReportItemExtensions.Clone&lt;TItem&gt;(TItem)</a>
  </div>

</div>
