# GrapeCity.ActiveReports.SectionReport.ScriptReferences

## Content

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



<h1 id="GrapeCity_ActiveReports_SectionReport_ScriptReferences_" data-uid="GrapeCity.ActiveReports.SectionReport.ScriptReferences*">ScriptReferences Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_ScriptReferences_" data-uid="GrapeCity.ActiveReports.SectionReport.ScriptReferences*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_ScriptReferences" data-uid="GrapeCity.ActiveReports.SectionReport.ScriptReferences">ScriptReferences</h4>
<div class="markdown level1 summary"><p>Gets a value representing the collection of references that could be use in the code of a report script.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public ScriptReferences ScriptReferences { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</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.ScriptReferences.html">ScriptReferences</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.SectionReport.ScriptReferences.html#GrapeCity_ActiveReports_SectionReport_ScriptReferences">ScriptReferences</a> object. Collection of namespaces based on strings.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_ScriptReferences_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>These strings are used in the 'using' or 'imports' statements to compile the script.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_ScriptReferences_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
if (!sectionReport.ScriptReferences.DefaultNamespaces.Contains("System.Windows.Forms"))
	sectionReport.AddAssembly(System.Reflection.Assembly.Load("System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
sectionReport.Script =
	@"public void Detail_Format()
	{
		System.Windows.Forms.MessageBox.Show(""Details"", ""Title"");	
	}";</code></pre>

</div>
