# C1.C1Preview.C1PrintManager

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_C1PrintManager" data-uid="C1.C1Preview.C1PrintManager" class="text-break">C1PrintManager Class
</h1>
  <div class="markdown level0 summary"><p>Provides printing services.</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"><span class="xref">C1PrintManager</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_C1PrintManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1PrintManager</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1PrintManager</code></pre>
  </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_C1Preview_C1PrintManager__ctor" data-uid="C1.C1Preview.C1PrintManager.#ctor">
          <a class="xref" href="C1.C1Preview.C1PrintManager.-ctor.html#C1_C1Preview_C1PrintManager__ctor">C1PrintManager()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.C1PrintManager.html">C1PrintManager</a> class.</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_C1Preview_C1PrintManager_Document" data-uid="C1.C1Preview.C1PrintManager.Document">
          <a class="xref" href="C1.C1Preview.C1PrintManager.Document.html#C1_C1Preview_C1PrintManager_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the document that to print.
If the assigned value is an unsupported object, an exception will be thrown.
Use <a class="xref" href="C1.C1Preview.C1PrintManager.IsSupportedDocument.html#C1_C1Preview_C1PrintManager_IsSupportedDocument_System_Object_">IsSupportedDocument(object)</a> to verify that the object can be printed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_PrintOptions" data-uid="C1.C1Preview.C1PrintManager.PrintOptions">
          <a class="xref" href="C1.C1Preview.C1PrintManager.PrintOptions.html#C1_C1Preview_C1PrintManager_PrintOptions">PrintOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.C1PrintOptions.html">C1PrintOptions</a> object specifying the printing options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_PrinterName" data-uid="C1.C1Preview.C1PrintManager.PrinterName">
          <a class="xref" href="C1.C1Preview.C1PrintManager.PrinterName.html#C1_C1Preview_C1PrintManager_PrinterName">PrinterName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the printer name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_Range" data-uid="C1.C1Preview.C1PrintManager.Range">
          <a class="xref" href="C1.C1Preview.C1PrintManager.Range.html#C1_C1Preview_C1PrintManager_Range">Range</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.OutputRange.html">OutputRange</a> object specifying the pages to print.</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_C1Preview_C1PrintManager_IsSupportedDocument_System_Object_" data-uid="C1.C1Preview.C1PrintManager.IsSupportedDocument(System.Object)">
          <a class="xref" href="C1.C1Preview.C1PrintManager.IsSupportedDocument.html#C1_C1Preview_C1PrintManager_IsSupportedDocument_System_Object_">IsSupportedDocument(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether an object can by printed by this print manager.
If this method returns false for an object, an attempt to assign that object
to <a class="xref" href="C1.C1Preview.C1PrintManager.Document.html#C1_C1Preview_C1PrintManager_Document">Document</a> will cause an exception.
Currently supported types include:</p>
<ul><li><a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a></li><li><a class="xref" href="C1.C1Preview.C1MultiDocument.html">C1MultiDocument</a></li><li><b>PrintDocument</b></li><li><b>IEnumerable</b> (assumes a list of page images).</li></ul>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_Print_System_Drawing_Printing_PrinterSettings_" data-uid="C1.C1Preview.C1PrintManager.Print(System.Drawing.Printing.PrinterSettings)">
          <a class="xref" href="C1.C1Preview.C1PrintManager.Print.html#C1_C1Preview_C1PrintManager_Print_System_Drawing_Printing_PrinterSettings_">Print(PrinterSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the <a class="xref" href="C1.C1Preview.C1PrintManager.Document.html#C1_C1Preview_C1PrintManager_Document">Document</a> with the specified printer settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_Print_System_Drawing_Printing_PrinterSettings_System_Drawing_Printing_PageSettings_" data-uid="C1.C1Preview.C1PrintManager.Print(System.Drawing.Printing.PrinterSettings,System.Drawing.Printing.PageSettings)">
          <a class="xref" href="C1.C1Preview.C1PrintManager.Print.html#C1_C1Preview_C1PrintManager_Print_System_Drawing_Printing_PrinterSettings_System_Drawing_Printing_PageSettings_">Print(PrinterSettings, PageSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the <a class="xref" href="C1.C1Preview.C1PrintManager.Document.html#C1_C1Preview_C1PrintManager_Document">Document</a> with the specified printer settings.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_AdjustPrintPage" data-uid="C1.C1Preview.C1PrintManager.AdjustPrintPage">
          <a class="xref" href="C1.C1Preview.C1PrintManager.AdjustPrintPage.html">AdjustPrintPage</a>
        </td>
        <td class="markdown level1 summary"><p>Fired from within the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printdocument.printpage">PrintPage</a> event handler
of the current print manager, prior to actually printing the page.
Allows to adjust the hard margins of the printer (e.g. to compensate
for a buggy printer driver, see <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.PrintableArea.html#C1_C1Preview_AdjustPrintPageEventArgs_PrintableArea">PrintableArea</a>),
or to print the current page in user code (see <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.Handled.html#C1_C1Preview_AdjustPrintPageEventArgs_Handled">Handled</a>).
See also <a class="xref" href="C1.C1Preview.C1PrintOptions.PrintAsBitmap.html#C1_C1Preview_C1PrintOptions_PrintAsBitmap">PrintAsBitmap</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_Error" data-uid="C1.C1Preview.C1PrintManager.Error">
          <a class="xref" href="C1.C1Preview.C1PrintManager.Error.html">Error</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an external exception is thrown (e.g. while printing).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_LongOperation" data-uid="C1.C1Preview.C1PrintManager.LongOperation">
          <a class="xref" href="C1.C1Preview.C1PrintManager.LongOperation.html">LongOperation</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs periodically when a long operation is in progress.
Can be used to provide progress indication and/or the ability for the user to cancel printing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1PrintManager_QueryPageSettings" data-uid="C1.C1Preview.C1PrintManager.QueryPageSettings">
          <a class="xref" href="C1.C1Preview.C1PrintManager.QueryPageSettings.html">QueryPageSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Fired from within the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printdocument.querypagesettings">QueryPageSettings</a> event handler
of the current print manager. Allows to change page settings (e.g. changing PaperSize.)</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
