# GrapeCity.ActiveReports.Rendering.EngineDataProcessor.FetchData

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_EngineDataProcessor_FetchData_" data-uid="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.FetchData*">FetchData Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_EngineDataProcessor_FetchData_" data-uid="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.FetchData*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_EngineDataProcessor_FetchData_GrapeCity_Enterprise_Data_DataEngine_Def_Report_System_Func_System_String_GrapeCity_ActiveReports_Rendering_EngineDataProcessor_DataExecutionContext__GrapeCity_ActiveReports_ResourceLocator_System_Func_GrapeCity_Enterprise_Data_DataEngine_Def_Report_GrapeCity_Enterprise_Data_DataEngine_DataParameter___GrapeCity_Enterprise_Data_DataEngine_ExpressionEvaluation_IExpressionContext__System_Threading_CancellationToken_GrapeCity_Enterprise_Data_DataEngine_DataParameter___System_Func_System_String_System_Func_GrapeCity_ActiveReports_Rendering_LocateDataSourceArgs_System_Object___System_Func_System_String_System_Func_GrapeCity_ActiveReports_PageReportModel_DataSource_GrapeCity_ActiveReports_Rendering_DataProcessing_LoginPasswordCredentials___GrapeCity_Enterprise_Data_DataEngine_InteractiveSortState_GrapeCity_ActiveReports_Core_Rendering_Data_IDataProvidersFactory_" data-uid="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.FetchData(GrapeCity.Enterprise.Data.DataEngine.Def.Report,System.Func{System.String,GrapeCity.ActiveReports.Rendering.EngineDataProcessor.DataExecutionContext},GrapeCity.ActiveReports.ResourceLocator,System.Func{GrapeCity.Enterprise.Data.DataEngine.Def.Report,GrapeCity.Enterprise.Data.DataEngine.DataParameter[],GrapeCity.Enterprise.Data.DataEngine.ExpressionEvaluation.IExpressionContext},System.Threading.CancellationToken,GrapeCity.Enterprise.Data.DataEngine.DataParameter[],System.Func{System.String,System.Func{GrapeCity.ActiveReports.Rendering.LocateDataSourceArgs,System.Object}},System.Func{System.String,System.Func{GrapeCity.ActiveReports.PageReportModel.DataSource,GrapeCity.ActiveReports.Rendering.DataProcessing.LoginPasswordCredentials}},GrapeCity.Enterprise.Data.DataEngine.InteractiveSortState,GrapeCity.ActiveReports.Core.Rendering.Data.IDataProvidersFactory)">FetchData(Report, Func&lt;string, DataExecutionContext&gt;, ResourceLocator, Func&lt;Report, DataParameter[], IExpressionContext&gt;, CancellationToken, DataParameter[], Func&lt;string, Func&lt;LocateDataSourceArgs, object&gt;&gt;, Func&lt;string, Func&lt;DataSource, LoginPasswordCredentials&gt;&gt;, InteractiveSortState, IDataProvidersFactory)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ReportDataSnapshot FetchData(Def.Report query, Func&lt;string, EngineDataProcessor.DataExecutionContext&gt; getContext, ResourceLocator resourceLocator, Func&lt;Def.Report, DataParameter[], IExpressionContext&gt; makeExpressionContext, CancellationToken token, DataParameter[] parameters, Func&lt;string, Func&lt;LocateDataSourceArgs, object&gt;&gt; locateDataSource, Func&lt;string, Func&lt;DataSource, LoginPasswordCredentials&gt;&gt; resolveCredentials, InteractiveSortState sortState = null, IDataProvidersFactory dpf = 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><span class="xref">Def</span>.<span class="xref">Report</span></td>
      <td><span class="parametername">query</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.html">EngineDataProcessor</a>.<a class="xref" href="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.DataExecutionContext.html">DataExecutionContext</a>&gt;</td>
      <td><span class="parametername">getContext</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.ResourceLocator.html">ResourceLocator</a></td>
      <td><span class="parametername">resourceLocator</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<span class="xref">Def</span>.<span class="xref">Report</span>, <span class="xref">DataParameter</span>[], <span class="xref">IExpressionContext</span>&gt;</td>
      <td><span class="parametername">makeExpressionContext</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">token</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">DataParameter</span>[]</td>
      <td><span class="parametername">parameters</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</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.func-2">Func</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Rendering.LocateDataSourceArgs.html">LocateDataSourceArgs</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</td>
      <td><span class="parametername">locateDataSource</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</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.func-2">Func</a>&lt;<a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a>, <a class="xref" href="GrapeCity.ActiveReports.Rendering.DataProcessing.LoginPasswordCredentials.html">LoginPasswordCredentials</a>&gt;&gt;</td>
      <td><span class="parametername">resolveCredentials</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">InteractiveSortState</span></td>
      <td><span class="parametername">sortState</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.IDataProvidersFactory.html">IDataProvidersFactory</a></td>
      <td><span class="parametername">dpf</span></td>
      <td></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="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.html">ReportDataSnapshot</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
