# GrapeCity.ActiveReports.SectionReport.MaxPages

## Content

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



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



<a id="GrapeCity_ActiveReports_SectionReport_MaxPages_" data-uid="GrapeCity.ActiveReports.SectionReport.MaxPages*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_MaxPages" data-uid="GrapeCity.ActiveReports.SectionReport.MaxPages">MaxPages</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating the maximum number of pages the report will create.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public long MaxPages { get; set; }</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="https://learn.microsoft.com/dotnet/api/system.int64">long</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a> value representing the maximum number of pages.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_MaxPages_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Default value is zero. The value can't be less than zero.</p>
</div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Throws if set value is out of range.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
