# C1.C1Preview.Export.HtmlExporter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_Export_HtmlExporter" data-uid="C1.C1Preview.Export.HtmlExporter" class="text-break">HtmlExporter Class
</h1>
  <div class="markdown level0 summary"><p>Represents an object that can be used to export a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object to HTML.</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="C1.C1Preview.Export.Exporter.html">Exporter</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.Export.ComplexExporter.html">ComplexExporter</a></div>
    <div class="level3"><span class="xref">HtmlExporter</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.Export.html">C1.C1Preview.Export</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_Export_HtmlExporter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class HtmlExporter : ComplexExporter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class HtmlExporter
    Inherits ComplexExporter</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_Export_HtmlExporter__ctor" data-uid="C1.C1Preview.Export.HtmlExporter.#ctor">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.-ctor.html#C1_C1Preview_Export_HtmlExporter__ctor">HtmlExporter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.Export.HtmlExporter.html">HtmlExporter</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_Export_HtmlExporter_ExportNavBar" data-uid="C1.C1Preview.Export.HtmlExporter.ExportNavBar">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.ExportNavBar.html#C1_C1Preview_Export_HtmlExporter_ExportNavBar">ExportNavBar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a template used to create a navigation bar with page numbers.
(Note: both Paginated and <a class="xref" href="C1.C1Preview.Export.HtmlExporter.GeneratePageLinks.html#C1_C1Preview_Export_HtmlExporter_GeneratePageLinks">GeneratePageLinks</a> must be set to <b>true</b> for this to work).</p>
<p>
The format of the string is as follows:
up to four "%s" strings are replaced with links to the first, previous, next and last pages,
correspondingly.
Up to two "%d" strings are replaced with the current and total page numbers.
</p>
For instance:
<p>
"&lt;a %s&gt;first&lt;/a&gt; &lt;a %s&gt;prev&lt;/a&gt; Page %d of %d &lt;a %s&gt;next&lt;/a&gt; &lt;a %s&gt;last&lt;/a&gt;"
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_ExportProvider" data-uid="C1.C1Preview.Export.HtmlExporter.ExportProvider">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.ExportProvider.html#C1_C1Preview_Export_HtmlExporter_ExportProvider">ExportProvider</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a class="xref" href="C1.C1Preview.Export.ExportProviders.HtmlExportProvider.html#C1_C1Preview_Export_ExportProviders_HtmlExportProvider">HtmlExportProvider</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_GenerateOutline" data-uid="C1.C1Preview.Export.HtmlExporter.GenerateOutline">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.GenerateOutline.html#C1_C1Preview_Export_HtmlExporter_GenerateOutline">GenerateOutline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to create a frame containing the document's outline.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_GeneratePageLinks" data-uid="C1.C1Preview.Export.HtmlExporter.GeneratePageLinks">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.GeneratePageLinks.html#C1_C1Preview_Export_HtmlExporter_GeneratePageLinks">GeneratePageLinks</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to generate hyperlinks to individual pages.
Note that this only works if Paginated is also <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_GeneratePageSeparators" data-uid="C1.C1Preview.Export.HtmlExporter.GeneratePageSeparators">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.GeneratePageSeparators.html#C1_C1Preview_Export_HtmlExporter_GeneratePageSeparators">GeneratePageSeparators</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to delimit individual pages
of the original document with horizontal lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_ImageFolder" data-uid="C1.C1Preview.Export.HtmlExporter.ImageFolder">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.ImageFolder.html#C1_C1Preview_Export_HtmlExporter_ImageFolder">ImageFolder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the path name of the folder where images are to be saved.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_LinksLocation" data-uid="C1.C1Preview.Export.HtmlExporter.LinksLocation">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.LinksLocation.html#C1_C1Preview_Export_HtmlExporter_LinksLocation">LinksLocation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the location of hyperlinks on the generated page(s)
(the hyperlinks can contain outline entries or page numbers).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_MaxHorzPageLinks" data-uid="C1.C1Preview.Export.HtmlExporter.MaxHorzPageLinks">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.MaxHorzPageLinks.html#C1_C1Preview_Export_HtmlExporter_MaxHorzPageLinks">MaxHorzPageLinks</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum number of page hyperlinks in a row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_PagePerFile" data-uid="C1.C1Preview.Export.HtmlExporter.PagePerFile">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.PagePerFile.html#C1_C1Preview_Export_HtmlExporter_PagePerFile">PagePerFile</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to export each page
of the document into a separate file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_PreserveExactHeight" data-uid="C1.C1Preview.Export.HtmlExporter.PreserveExactHeight">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.PreserveExactHeight.html#C1_C1Preview_Export_HtmlExporter_PreserveExactHeight">PreserveExactHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether export should
try to preserve the exact original height of all elements.
Generally, setting this property to <b>false</b> makes the resulting
HTML document more flexible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_Scaling" data-uid="C1.C1Preview.Export.HtmlExporter.Scaling">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.Scaling.html#C1_C1Preview_Export_HtmlExporter_Scaling">Scaling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the scaling factor applied to all elements
of the resulting HTML document, in percent.</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_Export_HtmlExporter_Clear" data-uid="C1.C1Preview.Export.HtmlExporter.Clear">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.Clear.html#C1_C1Preview_Export_HtmlExporter_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the internal state of the exporter and all its public properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_CopyPropertiesFromOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_" data-uid="C1.C1Preview.Export.HtmlExporter.CopyPropertiesFromOptionsForm(C1.C1Preview.Export.ExportOptionsFormBase)">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.CopyPropertiesFromOptionsForm.html#C1_C1Preview_Export_HtmlExporter_CopyPropertiesFromOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_">CopyPropertiesFromOptionsForm(ExportOptionsFormBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the options from the specified export options form
to corresponding properties on the current exporter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_CopyPropertiesToOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_" data-uid="C1.C1Preview.Export.HtmlExporter.CopyPropertiesToOptionsForm(C1.C1Preview.Export.ExportOptionsFormBase)">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.CopyPropertiesToOptionsForm.html#C1_C1Preview_Export_HtmlExporter_CopyPropertiesToOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_">CopyPropertiesToOptionsForm(ExportOptionsFormBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the properties of the current exporter to corresponding
user-editable options of the specified export options form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_InternalExport" data-uid="C1.C1Preview.Export.HtmlExporter.InternalExport">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.InternalExport.html#C1_C1Preview_Export_HtmlExporter_InternalExport">InternalExport()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs export to a disk file.
If <a class="xref" href="C1.C1Preview.Export.Exporter.OutputFileName.html#C1_C1Preview_Export_Exporter_OutputFileName">OutputFileName</a> has not been set, this method returns immediately.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_ProcessPage_System_Drawing_Imaging_Metafile_C1_C1Preview_C1MetafileInfo_System_Int32_System_Boolean_" data-uid="C1.C1Preview.Export.HtmlExporter.ProcessPage(System.Drawing.Imaging.Metafile,C1.C1Preview.C1MetafileInfo,System.Int32,System.Boolean)">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.ProcessPage.html#C1_C1Preview_Export_HtmlExporter_ProcessPage_System_Drawing_Imaging_Metafile_C1_C1Preview_C1MetafileInfo_System_Int32_System_Boolean_">ProcessPage(Metafile, C1MetafileInfo, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Not supported for this class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_HtmlExporter_Reset" data-uid="C1.C1Preview.Export.HtmlExporter.Reset">
          <a class="xref" href="C1.C1Preview.Export.HtmlExporter.Reset.html#C1_C1Preview_Export_HtmlExporter_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the internal state of the exporter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="C1.C1Preview.Export.HtmlExportProvider.html">HtmlExportProvider</a></div>
  </div>

</div>
