# C1.C1Preview.Export.XlsExporter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_Export_XlsExporter" data-uid="C1.C1Preview.Export.XlsExporter" class="text-break">XlsExporter Class
</h1>
  <div class="markdown level0 summary"><p>Represents an object that can be used to export a document to Excel (XLS and XLSX) formats.</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">XlsExporter</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_XlsExporter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class XlsExporter : ComplexExporter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class XlsExporter
    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_XlsExporter__ctor" data-uid="C1.C1Preview.Export.XlsExporter.#ctor">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.-ctor.html#C1_C1Preview_Export_XlsExporter__ctor">XlsExporter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.Export.XlsExporter.html">XlsExporter</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_XlsExporter_BookContent" data-uid="C1.C1Preview.Export.XlsExporter.BookContent">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.BookContent.html#C1_C1Preview_Export_XlsExporter_BookContent">BookContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating the Excel book content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_DataOnly" data-uid="C1.C1Preview.Export.XlsExporter.DataOnly">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.DataOnly.html#C1_C1Preview_Export_XlsExporter_DataOnly">DataOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether only data should be exported,
ignoring visual attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_DetectDataType" data-uid="C1.C1Preview.Export.XlsExporter.DetectDataType">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.DetectDataType.html#C1_C1Preview_Export_XlsExporter_DetectDataType">DetectDataType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the export module should
try to auto detect the type of data (numeric, date) in the cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_DetectFormats" data-uid="C1.C1Preview.Export.XlsExporter.DetectFormats">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.DetectFormats.html#C1_C1Preview_Export_XlsExporter_DetectFormats">DetectFormats</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to detect of Excel
format for each text value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_ExportProvider" data-uid="C1.C1Preview.Export.XlsExporter.ExportProvider">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.ExportProvider.html#C1_C1Preview_Export_XlsExporter_ExportProvider">ExportProvider</a>
        </td>
        <td class="markdown level1 summary"><p>Depending on the value of the <a class="xref" href="C1.C1Preview.Export.ComplexExporter.OpenXmlDocument.html#C1_C1Preview_Export_ComplexExporter_OpenXmlDocument">OpenXmlDocument</a> property on the current exporter,
gets <a class="xref" href="C1.C1Preview.Export.ExportProviders.XlsExportProvider.html#C1_C1Preview_Export_ExportProviders_XlsExportProvider">XlsExportProvider</a> or <a class="xref" href="C1.C1Preview.Export.ExportProviders.XlsxExportProvider.html#C1_C1Preview_Export_ExportProviders_XlsxExportProvider">XlsxExportProvider</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_FontScaling" data-uid="C1.C1Preview.Export.XlsExporter.FontScaling">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.FontScaling.html#C1_C1Preview_Export_XlsExporter_FontScaling">FontScaling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the amount (in points) by which to change font sizes
(may be used to better fit texts into available space).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_PagePerSheet" data-uid="C1.C1Preview.Export.XlsExporter.PagePerSheet">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.PagePerSheet.html#C1_C1Preview_Export_XlsExporter_PagePerSheet">PagePerSheet</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 sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_ParseEmfPlus" data-uid="C1.C1Preview.Export.XlsExporter.ParseEmfPlus">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.ParseEmfPlus.html#C1_C1Preview_Export_XlsExporter_ParseEmfPlus">ParseEmfPlus</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether EMF+ metafiles should be parsed directly without
converting them to EMF-only first.
The default is <b>false</b>. Set to <b>true</b> if you have issues resulting from EMF+ to EMF conversion.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_Tolerance" data-uid="C1.C1Preview.Export.XlsExporter.Tolerance">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.Tolerance.html#C1_C1Preview_Export_XlsExporter_Tolerance">Tolerance</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the tolerance (in points) when auto-detecting the
boundaries of rows and columns in the document. The smaller this
amount, the greater the number of narrow rows and columns created
for precise positioning of data.</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_XlsExporter_Clear" data-uid="C1.C1Preview.Export.XlsExporter.Clear">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.Clear.html#C1_C1Preview_Export_XlsExporter_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_XlsExporter_CopyPropertiesFromOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_" data-uid="C1.C1Preview.Export.XlsExporter.CopyPropertiesFromOptionsForm(C1.C1Preview.Export.ExportOptionsFormBase)">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.CopyPropertiesFromOptionsForm.html#C1_C1Preview_Export_XlsExporter_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_XlsExporter_CopyPropertiesToOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_" data-uid="C1.C1Preview.Export.XlsExporter.CopyPropertiesToOptionsForm(C1.C1Preview.Export.ExportOptionsFormBase)">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.CopyPropertiesToOptionsForm.html#C1_C1Preview_Export_XlsExporter_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_XlsExporter_ProcessPage_System_Drawing_Imaging_Metafile_C1_C1Preview_C1MetafileInfo_System_Int32_System_Boolean_" data-uid="C1.C1Preview.Export.XlsExporter.ProcessPage(System.Drawing.Imaging.Metafile,C1.C1Preview.C1MetafileInfo,System.Int32,System.Boolean)">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.ProcessPage.html#C1_C1Preview_Export_XlsExporter_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>Exports a page of a document represented by a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_XlsExporter_Reset" data-uid="C1.C1Preview.Export.XlsExporter.Reset">
          <a class="xref" href="C1.C1Preview.Export.XlsExporter.Reset.html#C1_C1Preview_Export_XlsExporter_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.XlsExportProvider.html">XlsExportProvider</a></div>
      <div><a class="xref" href="C1.C1Preview.Export.XlsxExportProvider.html">XlsxExportProvider</a></div>
  </div>

</div>
