# C1.Win.GanttView.Printing.PreviewWrapper.Preview

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview*">Preview Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview*"></a>
<h4 id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_System_Object_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview(System.Object)">Preview(object)</h4>
<div class="markdown level1 summary"><p>Shows the specified object in a print preview dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Preview(object printDocument)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Preview(printDocument As Object)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">printDocument</span></td>
      <td><p>An object to preview.
It might be one of the next types:
- C1.C1Preview.C1PrintDocument,
- <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printdocument">PrintDocument</a>,
- C1.C1Report.C1Report,
- <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglist">IBindingList</a>,
- <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview*"></a>
<h4 id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_C1_Win_GanttView_Printing_PrintDocumentWrapper_System_Drawing_Printing_PageSettings__" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview(C1.Win.GanttView.Printing.PrintDocumentWrapper,System.Drawing.Printing.PageSettings@)">Preview(PrintDocumentWrapper, ref PageSettings)</h4>
<div class="markdown level1 summary"><p>Shows the specified object in a print preview dialog using the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Preview(PrintDocumentWrapper printDocument, ref PageSettings pageSettings)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Preview(printDocument As PrintDocumentWrapper, ByRef pageSettings As PageSettings)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a></td>
      <td><span class="parametername">printDocument</span></td>
      <td><p>The <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a> object to preview.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a></td>
      <td><span class="parametername">pageSettings</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> object for using in preview.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview*"></a>
<h4 id="C1_Win_GanttView_Printing_PreviewWrapper_Preview_C1_Win_GanttView_Printing_PrintDocumentWrapper_" data-uid="C1.Win.GanttView.Printing.PreviewWrapper.Preview(C1.Win.GanttView.Printing.PrintDocumentWrapper)">Preview(PrintDocumentWrapper)</h4>
<div class="markdown level1 summary"><p>Shows the specified <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a> object in a print preview dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Preview(PrintDocumentWrapper printDocument)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Preview(printDocument As PrintDocumentWrapper)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a></td>
      <td><span class="parametername">printDocument</span></td>
      <td><p>The <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a> object to preview.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
