# C1.Win.GanttView.Printing.PrintDocumentWrapper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_Printing_PrintDocumentWrapper" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper" class="text-break">PrintDocumentWrapper Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.html">PrintDocumentWrapper</a> class wraps the C1.C1Preview.C1PrintDocument functionality.
It loads C1.C1Preview.C1PrintDocument component via reflection from the C1.C1Report.2 assembly.</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">PrintDocumentWrapper</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.GanttView.Printing.html">C1.Win.GanttView.Printing</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.GanttView.10.dll</h6>
  <h5 id="C1_Win_GanttView_Printing_PrintDocumentWrapper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class PrintDocumentWrapper : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class PrintDocumentWrapper
    Implements IDisposable</code></pre>
  </div>
  <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_GanttView_Printing_PrintDocumentWrapper_C1PrintDocument" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.C1PrintDocument">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.C1PrintDocument.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_C1PrintDocument">C1PrintDocument</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets wrapped C1PrintDocument instance.</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_GanttView_Printing_PrintDocumentWrapper_AddDocumentTag_System_String_System_Object_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.AddDocumentTag(System.String,System.Object)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.AddDocumentTag.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_AddDocumentTag_System_String_System_Object_">AddDocumentTag(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the new tag with the specified value to the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_AddExternalAssembly_System_String_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.AddExternalAssembly(System.String)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.AddExternalAssembly.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_AddExternalAssembly_System_String_">AddExternalAssembly(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds specified external assembly reference to the currently loaded document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Clear" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Clear">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Clear.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the document, all its properties will be set to default values</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Dispose" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Dispose">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Dispose.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Generate" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Generate">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Generate.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Generate">Generate()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_GetDocumentInfoProperty_System_String_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.GetDocumentInfoProperty(System.String)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.GetDocumentInfoProperty.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_GetDocumentInfoProperty_System_String_">GetDocumentInfoProperty(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the value of the specified property of the document's DocumentInfo object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_IO_Stream_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load(System.IO.Stream)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the current document from a stream.
The stream should contain a document in C1D format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_IO_Stream_System_Object_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load(System.IO.Stream,System.Object)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_IO_Stream_System_Object_">Load(Stream, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the current document from a stream.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_String_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load(System.String)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_String_">Load(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the current document from a file.
The file format (C1D or C1DX) is determined by the file extension.
The format defaults to C1D if the format cannot be determined from the extension.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_String_System_Object_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load(System.String,System.Object)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Load.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Load_System_String_System_Object_">Load(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the current document from a file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Print" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Print">Print()</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Print_System_Drawing_Printing_PrinterSettings_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print(System.Drawing.Printing.PrinterSettings)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Print_System_Drawing_Printing_PrinterSettings_">Print(PrinterSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Print_System_Drawing_Printing_PrinterSettings_System_Boolean_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print(System.Drawing.Printing.PrinterSettings,System.Boolean)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Print_System_Drawing_Printing_PrinterSettings_System_Boolean_">Print(PrinterSettings, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_Print_System_Drawing_Printing_PrinterSettings_System_Drawing_Printing_PageSettings_System_Boolean_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print(System.Drawing.Printing.PrinterSettings,System.Drawing.Printing.PageSettings,System.Boolean)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.Print.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_Print_System_Drawing_Printing_PrinterSettings_System_Drawing_Printing_PageSettings_System_Boolean_">Print(PrinterSettings, PageSettings, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Prints the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_RemoveDocumentTag_System_String_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.RemoveDocumentTag(System.String)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.RemoveDocumentTag.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_RemoveDocumentTag_System_String_">RemoveDocumentTag(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the document tag by specific name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_Printing_PrintDocumentWrapper_SetDocumentTag_System_String_System_Object_" data-uid="C1.Win.GanttView.Printing.PrintDocumentWrapper.SetDocumentTag(System.String,System.Object)">
          <a class="xref" href="C1.Win.GanttView.Printing.PrintDocumentWrapper.SetDocumentTag.html#C1_Win_GanttView_Printing_PrintDocumentWrapper_SetDocumentTag_System_String_System_Object_">SetDocumentTag(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the specified document tag.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
