# GrapeCity.ActiveReports.Web.WebHostBuilderExtensions.UseReporting

## Content

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



<h1 id="GrapeCity_ActiveReports_Web_WebHostBuilderExtensions_UseReporting_" data-uid="GrapeCity.ActiveReports.Web.WebHostBuilderExtensions.UseReporting*">UseReporting Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Web_WebHostBuilderExtensions_UseReporting_" data-uid="GrapeCity.ActiveReports.Web.WebHostBuilderExtensions.UseReporting*"></a>
<h4 id="GrapeCity_ActiveReports_Web_WebHostBuilderExtensions_UseReporting_System_Web_HttpApplication_System_Action_GrapeCity_ActiveReports_Aspnetcore_Viewer_ReportingSettings__" data-uid="GrapeCity.ActiveReports.Web.WebHostBuilderExtensions.UseReporting(System.Web.HttpApplication,System.Action{GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings})">UseReporting(HttpApplication, Action&lt;ReportingSettings&gt;)</h4>
<div class="markdown level1 summary"><p>Configures middleware for the ActiveReports viewer API.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static HttpApplication UseReporting(this HttpApplication builder, Action&lt;ReportingSettings&gt; configure = null)</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.web.httpapplication">HttpApplication</a></td>
      <td><span class="parametername">builder</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.httpapplication">HttpApplication</a> object to configure.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="../MESCIUS.ActiveReports.Web.Viewer/GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.html">ReportingSettings</a>&gt;</td>
      <td><span class="parametername">configure</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> object to configure the report viewer.
This parameter is optional and can be <code>null</code>.</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.web.httpapplication">HttpApplication</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.httpapplication">HttpApplication</a> object so that additional calls can be chained.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Web_WebHostBuilderExtensions_UseReporting_System_Web_HttpApplication_System_Action_GrapeCity_ActiveReports_Aspnetcore_Viewer_ReportingSettings___examples">Examples</h5>
<pre><code class="lang-csharp">this.UseReporting(settings =&gt;
{
	settings.UseFileStore(new DirectoryInfo("/path/to/dir"));
	// Add other configurations if it necessary
});</code></pre>

</div>
