# C1.Report.Section.OnPrint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_Section_OnPrint_" data-uid="C1.Report.Section.OnPrint*">OnPrint Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_Section_OnPrint_" data-uid="C1.Report.Section.OnPrint*"></a>
<h4 id="C1_Report_Section_OnPrint" data-uid="C1.Report.Section.OnPrint">OnPrint</h4>
<div class="markdown level1 summary"><p>Gets or sets a string containing <b>VBScript</b> code to be executed before the <a class="xref" href="C1.Report.Section.html">Section</a> is printed
(after it is formatted).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Script&quot;)]
[C1Description(&quot;Section.OnPrint&quot;, &quot;The VBScript code executed before the section is printed (after it is formatted).&quot;)]
public string OnPrint { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Script&quot;)&gt;
&lt;C1Description(&quot;Section.OnPrint&quot;, &quot;The VBScript code executed before the section is printed (after it is formatted).&quot;)&gt;
Public Property OnPrint As String</code></pre>
</div>
<h5 id="C1_Report_Section_OnPrint_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property contains <b>VBScript</b> instructions that get executed after the fields in the section
have been calculated.</p>
</div>
</div>
