# GrapeCity.ActiveReports.Aspnetcore.Viewer.ConfigureExtensions.UseReportViewer

## Content

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



<h1 id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ConfigureExtensions_UseReportViewer_" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ConfigureExtensions.UseReportViewer*">UseReportViewer Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ConfigureExtensions_UseReportViewer_" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ConfigureExtensions.UseReportViewer*"></a>
<h4 id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ConfigureExtensions_UseReportViewer_Microsoft_AspNetCore_Builder_IApplicationBuilder_System_Action_GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration__" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ConfigureExtensions.UseReportViewer(Microsoft.AspNetCore.Builder.IApplicationBuilder,System.Action{GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration})">UseReportViewer(IApplicationBuilder, Action&lt;ReportViewerConfiguration&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 void UseReportViewer(this IApplicationBuilder app, Action&lt;ReportViewerConfiguration&gt; configAction)</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/microsoft.aspnetcore.builder.iapplicationbuilder">IApplicationBuilder</a></td>
      <td><span class="parametername">app</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.builder.iapplicationbuilder">IApplicationBuilder</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.Web.Viewer.ReportViewerConfiguration.html">ReportViewerConfiguration</a>&gt;</td>
      <td><span class="parametername">configAction</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> to configure the report viewer.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ConfigureExtensions_UseReportViewer_" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ConfigureExtensions.UseReportViewer*"></a>
<h4 id="GrapeCity_ActiveReports_Aspnetcore_Viewer_ConfigureExtensions_UseReportViewer_Microsoft_AspNetCore_Builder_IApplicationBuilder_GrapeCity_ActiveReports_Web_Viewer_IReportViewerBackendApi_" data-uid="GrapeCity.ActiveReports.Aspnetcore.Viewer.ConfigureExtensions.UseReportViewer(Microsoft.AspNetCore.Builder.IApplicationBuilder,GrapeCity.ActiveReports.Web.Viewer.IReportViewerBackendApi)">UseReportViewer(IApplicationBuilder, IReportViewerBackendApi)</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 void UseReportViewer(this IApplicationBuilder app, IReportViewerBackendApi customApi)</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/microsoft.aspnetcore.builder.iapplicationbuilder">IApplicationBuilder</a></td>
      <td><span class="parametername">app</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.builder.iapplicationbuilder">IApplicationBuilder</a> object to configure.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Web.Viewer/GrapeCity.ActiveReports.Web.Viewer.IReportViewerBackendApi.html">IReportViewerBackendApi</a></td>
      <td><span class="parametername">customApi</span></td>
      <td><p>A <a class="xref" href="../MESCIUS.ActiveReports.Web.Viewer/GrapeCity.ActiveReports.Web.Viewer.IReportViewerBackendApi.html">IReportViewerBackendApi</a> object to use for configuring the middleware.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
