# GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Export

## Content

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



<h1 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportViewer_Export_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Export*">Export Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Blazor_Viewer_ReportViewer_Export_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Export*"></a>
<h4 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportViewer_Export_GrapeCity_ActiveReports_Blazor_Viewer_ExportTypes_System_Action_System_String__System_Boolean_System_Collections_Generic_Dictionary_System_String_System_String__System_Func_System_Boolean__" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Export(GrapeCity.ActiveReports.Blazor.Viewer.ExportTypes,System.Action{System.String},System.Boolean,System.Collections.Generic.Dictionary{System.String,System.String},System.Func{System.Boolean})">Export(ExportTypes, Action&lt;string&gt;, bool, Dictionary&lt;string, string&gt;, Func&lt;bool&gt;)</h4>
<div class="markdown level1 summary"><p>Exports the currently displayed report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task Export(ExportTypes exportType, Action&lt;string&gt; callback = null, bool saveAsDialog = false, Dictionary&lt;string, string&gt; settings = null, Func&lt;bool&gt; isCancelRequested = 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="GrapeCity.ActiveReports.Blazor.Viewer.ExportTypes.html">ExportTypes</a></td>
      <td><span class="parametername">exportType</span></td>
      <td><p>Specifies export format.</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="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>Function invoked once the export result is available (its URL is passed in the callback).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">saveAsDialog</span></td>
      <td><p>Indicates whether the save as dialog should be shown immediately once the export result is ready.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">settings</span></td>
      <td><p>The export settings available for RenderingExtensions.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</td>
      <td><span class="parametername">isCancelRequested</span></td>
      <td><p>The function periodically called to check if the export task should be canceled.</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.threading.tasks.task">Task</a></td>
      <td><p>A task that represents the asynchronous operation of exporting the report.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
