# C1.Report.FlexReport.StartReport

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Report_FlexReport_StartReport" data-uid="C1.Report.FlexReport.StartReport" class="text-break">StartReport Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the report starts rendering, before it opens the datasources and checks parameters.</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_StartReport_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;C1FlexReport.StartReport&quot;, &quot;Occurs when the report starts rendering, before it opens the datasources and checks parameters.&quot;)]
public event EventHandler StartReport</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;C1FlexReport.StartReport&quot;, &quot;Occurs when the report starts rendering, before it opens the datasources and checks parameters.&quot;)&gt;
Public Event StartReport As EventHandler</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="https://learn.microsoft.com/dotnet/api/system.eventhandler">EventHandler</a></td>
      <td>Occurs when the report starts rendering, before it opens the datasources and checks parameters.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Report_FlexReport_StartReport_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>You can use this event to provide user feedback or to make changes to the 
datasources properties.</p>
<p>For example, you may implement your own version of parameterized queries by asking the 
user to provide some information and changing the <a class="xref" href="C1.Report.DataSource.RecordSource.html#C1_Report_DataSource_RecordSource">RecordSource</a> 
property accordingly.</p>
<p>You may also use this event to assign a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a> object directly to the 
report's <a class="xref" href="C1.Report.DataSource.Recordset.html#C1_Report_DataSource_Recordset">Recordset</a> property. Applications that already have the 
report data should do this to save time by preventing <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> from loading its own copy 
of the data.</p>
</div>
</div>
