# C1.Report.FlexReport.MaxPages

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_FlexReport_MaxPages_" data-uid="C1.Report.FlexReport.MaxPages*">MaxPages Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_FlexReport_MaxPages_" data-uid="C1.Report.FlexReport.MaxPages*"></a>
<h4 id="C1_Report_FlexReport_MaxPages" data-uid="C1.Report.FlexReport.MaxPages">MaxPages</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum number of pages allowed for a report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Behavior&quot;)]
[C1Description(&quot;C1FlexReport.MaxPages&quot;, &quot;The maximum number of pages to render.&quot;)]
[Browsable(false)]
public int MaxPages { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Behavior&quot;)&gt;
&lt;C1Description(&quot;C1FlexReport.MaxPages&quot;, &quot;The maximum number of pages to render.&quot;)&gt;
&lt;Browsable(False)&gt;
Public Property MaxPages As Integer</code></pre>
</div>
<h5 id="C1_Report_FlexReport_MaxPages_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property is useful if you want to limit the maximum number of pages in a report.</p>
<p>For example, you may write a report designer with a preview window that shows only the first 
five pages of a report.</p>
<p>Setting this property to zero allows reports of any length.</p>
<p>You can also limit the size of reports by setting the 
<a class="xref" href="C1.Report.DataSource.MaxRecords.html#C1_Report_DataSource_MaxRecords">MaxRecords</a> property.</p>
</div>
</div>
