# C1.Report.FlexReport.ReportError

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Report_FlexReport_ReportError" data-uid="C1.Report.FlexReport.ReportError" class="text-break">ReportError Event
</h1>
<div class="markdown level0 summary"><p>Occurs when an error occurs while rendering a report.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
<h6><strong>Assembly</strong>: C1.Report.dll</h6>
<h5 id="C1_Report_FlexReport_ReportError_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;C1FlexReport.ReportError&quot;, &quot;Occurs when an error occurs while rendering a report.&quot;)]
public event ReportErrorEventHandler ReportError</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;C1FlexReport.ReportError&quot;, &quot;Occurs when an error occurs while rendering a report.&quot;)&gt;
Public Event ReportError As ReportErrorEventHandler</code></pre>
</div>
<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="C1.Report.ReportErrorEventHandler.html">ReportErrorEventHandler</a></td>
      <td>Occurs when an error occurs while rendering a report.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Report_FlexReport_ReportError_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>The most common types of errors found when rendering reports are:</p>
<p>1) Invalid connection string or SQL query.
This usually indicates that the system could not open the specified database (a server may be off line, or 
a database file may be in a different location than what was specified) or that the SQL syntax used for the 
<a class="xref" href="C1.Report.FlexReport.DataSource.html#C1_Report_FlexReport_DataSource">DataSource</a> contains errors.</p>
<p>2) Error executing scripts or evaluating expressions. This usually indicates that the VBScript expression 
used contains a syntax error. In these cases, make sure you look at the exception message. It usually contains a 
good explanation of what caused the error.</p>
</div>
</div>
