# GrapeCity.ActiveReports.SectionReport.AddAssembly

## Content

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



<h1 id="GrapeCity_ActiveReports_SectionReport_AddAssembly_" data-uid="GrapeCity.ActiveReports.SectionReport.AddAssembly*">AddAssembly Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_AddAssembly_" data-uid="GrapeCity.ActiveReports.SectionReport.AddAssembly*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_AddAssembly_System_Reflection_Assembly_" data-uid="GrapeCity.ActiveReports.SectionReport.AddAssembly(System.Reflection.Assembly)">AddAssembly(Assembly)</h4>
<div class="markdown level1 summary"><p>Adds the specified external assembly to use inside scripts.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddAssembly(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.reflection.assembly">Assembly</a></td>
      <td><span class="parametername">assembly</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a> value representing the external assembly that could be added.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_AddAssembly_System_Reflection_Assembly__examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout("MySectionReport.rpx");
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.AddAssembly(System.Reflection.Assembly.Load("System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));</code></pre>

</div>
