# C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog" class="text-break">C1FlexPivotPrintPreviewDialog Class
</h1>
  <div class="markdown level0 summary"><p>Represents a dialog used to preview and print <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printdocument">PrintDocument</a>
objects.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.scrollablecontrol">ScrollableControl</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.containercontrol">ContainerControl</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a></div>
    <div class="level7"><span class="xref">C1FlexPivotPrintPreviewDialog</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.icontainercontrol">IContainerControl</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexPivot.html">C1.Win.FlexPivot</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexPivot.4.8.dll</h6>
  <h5 id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1FlexPivotPrintPreviewDialog), &quot;C1FlexPivotPrintPreviewDialog.png&quot;)]
public class C1FlexPivotPrintPreviewDialog : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1FlexPivotPrintPreviewDialog), &quot;C1FlexPivotPrintPreviewDialog.png&quot;)&gt;
Public Class C1FlexPivotPrintPreviewDialog
    Inherits Form
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl</code></pre>
  </div>
  <h5 id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This dialog is similar to the standard <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.printpreviewdialog">PrintPreviewDialog</a>
but provides additional options such printer and page setup buttons,
a better UI based on the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.toolstrip">ToolStrip</a> control, and built-in
PDF export.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog__ctor" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.#ctor">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.-ctor.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog__ctor">C1FlexPivotPrintPreviewDialog()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.html">C1FlexPivotPrintPreviewDialog</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog__ctor_System_Windows_Forms_Control_" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.#ctor(System.Windows.Forms.Control)">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.-ctor.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog__ctor_System_Windows_Forms_Control_">C1FlexPivotPrintPreviewDialog(Control)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.html">C1FlexPivotPrintPreviewDialog</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_Document" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.Document">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.Document.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printdocument">PrintDocument</a> to preview.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_ApplyTheme_System_Object_" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.ApplyTheme(System.Object)">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.ApplyTheme.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_ApplyTheme_System_Object_">ApplyTheme(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Changes the dialog theme.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_Dispose_System_Boolean_" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.Dispose.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_OnFontChanged_System_EventArgs_" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.OnFontChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.OnFontChanged.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_OnFontChanged_System_EventArgs_">OnFontChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overriden to update the toolbar size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_OnFormClosing_System_Windows_Forms_FormClosingEventArgs_" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.OnFormClosing(System.Windows.Forms.FormClosingEventArgs)">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.OnFormClosing.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_OnFormClosing_System_Windows_Forms_FormClosingEventArgs_">OnFormClosing(FormClosingEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overridden to cancel any ongoing previews when closing form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_OnShown_System_EventArgs_" data-uid="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.OnShown(System.EventArgs)">
          <a class="xref" href="C1.Win.FlexPivot.C1FlexPivotPrintPreviewDialog.OnShown.html#C1_Win_FlexPivot_C1FlexPivotPrintPreviewDialog_OnShown_System_EventArgs_">OnShown(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overridden to assign document to preview control only after the
initial activation.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
