# C1.Report.FlexReport.OnReportError

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_FlexReport_OnReportError_" data-uid="C1.Report.FlexReport.OnReportError*">OnReportError Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_FlexReport_OnReportError_" data-uid="C1.Report.FlexReport.OnReportError*"></a>
<h4 id="C1_Report_FlexReport_OnReportError_System_Int32_System_Exception_System_Boolean_" data-uid="C1.Report.FlexReport.OnReportError(System.Int32,System.Exception,System.Boolean)">OnReportError(int, Exception, bool)</h4>
<div class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Report.FlexReport.ReportError.html">ReportError</a> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual bool OnReportError(int pageNo, Exception exception, bool fatal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function OnReportError(pageNo As Integer, exception As Exception, fatal As Boolean) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageNo</span></td>
      <td><p>The number of page (one-based) where error occurs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.exception">Exception</a></td>
      <td><span class="parametername">exception</span></td>
      <td><p>The occured exception.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fatal</span></td>
      <td><p>Indicates whether the component should throw the <code class="paramref">exception</code> that was detected or whether it should ignore the error and continue rendering the report.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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.boolean">bool</a></td>
      <td><p>Returns <b>false</b> if report rendering should be stopped <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
