# GrapeCity.ActiveReports.SectionReport.Script

## Content

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



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



<a id="GrapeCity_ActiveReports_SectionReport_Script_" data-uid="GrapeCity.ActiveReports.SectionReport.Script*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_Script" data-uid="GrapeCity.ActiveReports.SectionReport.Script">Script</h4>
<div class="markdown level1 summary"><p>Gets or sets a value containing the custom report code.</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 string Script { get; set; }</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value that represents the script.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_Script_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
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>
