# GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseEmbeddedTemplates

## Content

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



<h1 id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseEmbeddedTemplates_" data-uid="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseEmbeddedTemplates*">UseEmbeddedTemplates Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseEmbeddedTemplates_" data-uid="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseEmbeddedTemplates*"></a>
<h4 id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseEmbeddedTemplates_System_String_System_Reflection_Assembly_" data-uid="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseEmbeddedTemplates(System.String,System.Reflection.Assembly)">UseEmbeddedTemplates(string, Assembly)</h4>
<div class="markdown level1 summary"><p>Uses the embedded resources for report files and resources.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UseEmbeddedTemplates(string resourcePrefix, Assembly assembly)</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.string">string</a></td>
      <td><span class="parametername">resourcePrefix</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the prefix used to locate the embedded templates within the assembly.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a></td>
      <td><span class="parametername">assembly</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a> object containing the templates.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseEmbeddedTemplates_System_String_System_Reflection_Assembly__examples">Examples</h5>
<pre><code class="lang-csharp">app.UseReportViewer(config =&gt;
{
   config.UseEmbeddedTemplates("MyProject.Reports", Assembly.GetExecutingAssembly());
});</code></pre>

</div>
