# GrapeCity.ActiveReports.Design.Designer.EnablePreview

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Designer_EnablePreview_" data-uid="GrapeCity.ActiveReports.Design.Designer.EnablePreview*">EnablePreview Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_EnablePreview_" data-uid="GrapeCity.ActiveReports.Design.Designer.EnablePreview*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_EnablePreview" data-uid="GrapeCity.ActiveReports.Design.Designer.EnablePreview">EnablePreview</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether the 'Preview' tab is visible on the design surface tool panel.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool EnablePreview { 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.boolean">bool</a></td>
      <td><p><code>true</code> if the 'Preview' tab is enabled and visible; otherwise, <code>false</code>. The default is <code>true</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_EnablePreview_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property controls the visibility of the 'Preview' tab, which allows users to view a rendered preview of the current report.
When set to <code>false</code>, the 'Preview' tab is hidden, and users cannot access the preview functionality directly from the design surface.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_EnablePreview_examples">Examples</h5>
<pre><code class="lang-csharp">// Enable the preview tab in the designer
designer.EnablePreview = true;
// Disable the preview tab in the designer
designer.EnablePreview = false;</code></pre>

</div>
