# C1.C1Preview.C1PrintDocument.Export

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*">Export Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_String_C1_C1Preview_OutputRange_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.String,C1.C1Preview.OutputRange,System.Boolean)">Export(string, OutputRange, bool)</h4>
<div class="markdown level1 summary"><p>Exports the document to a disk file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(string fileName, OutputRange outputRange, bool showProgress)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(fileName As String, outputRange As OutputRange, showProgress As Boolean)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The output file name. The file extension determines the export format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.OutputRange.html">OutputRange</a></td>
      <td><span class="parametername">outputRange</span></td>
      <td><p>The range of pages to export (use null to export all pages).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showProgress</span></td>
      <td><p>Flag indicating whether to show the progress dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_String_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.String,System.Boolean)">Export(string, bool)</h4>
<div class="markdown level1 summary"><p>Exports the document to a disk file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(string fileName, bool showProgress)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(fileName As String, showProgress As Boolean)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The output file name. The file extension determines the export format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showProgress</span></td>
      <td><p>Flag indicating whether to show the progress dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_String_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.String)">Export(string)</h4>
<div class="markdown level1 summary"><p>Exports the document to a disk file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(string fileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(fileName As String)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The output file name. The file extension determines the export format.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_IO_Stream_C1_C1Preview_Export_ExportProvider_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.IO.Stream,C1.C1Preview.Export.ExportProvider,System.Boolean)">Export(Stream, ExportProvider, bool)</h4>
<div class="markdown level1 summary"><p>Exports the document to a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(Stream stream, ExportProvider exportProvider, bool showProgress)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(stream As Stream, exportProvider As ExportProvider, showProgress As Boolean)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The destination stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Export.ExportProvider.html">ExportProvider</a></td>
      <td><span class="parametername">exportProvider</span></td>
      <td><p>The export provider. Use any of the static export providers available on
the C1.C1Preview.Export.ExportProviders class.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showProgress</span></td>
      <td><p>Flag indicating whether to show the progress dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_IO_Stream_C1_C1Preview_Export_ExportProvider_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.IO.Stream,C1.C1Preview.Export.ExportProvider)">Export(Stream, ExportProvider)</h4>
<div class="markdown level1 summary"><p>Exports the document to a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(Stream stream, ExportProvider exportProvider)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(stream As Stream, exportProvider As ExportProvider)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The destination stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Export.ExportProvider.html">ExportProvider</a></td>
      <td><span class="parametername">exportProvider</span></td>
      <td><p>The export provider. Use any of the static export providers available on
the C1.C1Preview.Export.ExportProviders class.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_String_C1_C1Preview_Export_ExportProvider_C1_C1Preview_OutputRange_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.String,C1.C1Preview.Export.ExportProvider,C1.C1Preview.OutputRange,System.Boolean)">Export(string, ExportProvider, OutputRange, bool)</h4>
<div class="markdown level1 summary"><p>Exports the document to a disk file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(string fileName, ExportProvider exportProvider, OutputRange outputRange, bool showProgress)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(fileName As String, exportProvider As ExportProvider, outputRange As OutputRange, showProgress As Boolean)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The output file name. The file extension determines the export format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Export.ExportProvider.html">ExportProvider</a></td>
      <td><span class="parametername">exportProvider</span></td>
      <td><p>The export provider. Use any of the static export providers available on
the C1.C1Preview.Export.ExportProviders class.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.OutputRange.html">OutputRange</a></td>
      <td><span class="parametername">outputRange</span></td>
      <td><p>The range of pages to export (use null to export all pages).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showProgress</span></td>
      <td><p>Flag indicating whether to show the progress dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_Export_" data-uid="C1.C1Preview.C1PrintDocument.Export*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_Export_System_IO_Stream_C1_C1Preview_Export_ExportProvider_C1_C1Preview_OutputRange_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.Export(System.IO.Stream,C1.C1Preview.Export.ExportProvider,C1.C1Preview.OutputRange,System.Boolean)">Export(Stream, ExportProvider, OutputRange, bool)</h4>
<div class="markdown level1 summary"><p>Exports the document to a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Export(Stream stream, ExportProvider exportProvider, OutputRange outputRange, bool showProgress)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Export(stream As Stream, exportProvider As ExportProvider, outputRange As OutputRange, showProgress As Boolean)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The destination stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Export.ExportProvider.html">ExportProvider</a></td>
      <td><span class="parametername">exportProvider</span></td>
      <td><p>The export provider. Use any of the static export providers available on
the C1.C1Preview.Export.ExportProviders class.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.OutputRange.html">OutputRange</a></td>
      <td><span class="parametername">outputRange</span></td>
      <td><p>The range of pages to export (use null to export all pages).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showProgress</span></td>
      <td><p>Flag indicating whether to show the progress dialog.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
