# GrapeCity.ActiveReports.Export.Excel.Section.XlsExport

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport" class="text-break">XlsExport Class
</h1>
  <div class="markdown level0 summary"><p>Provides Excel Export functionality for ActiveReports for .NET.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><span class="xref">XlsExport</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.IDocumentExport.html">IDocumentExport</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.html">GrapeCity.ActiveReports.Export.Excel.Section</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Export.Excel.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class XlsExport : Component, IComponent, IDisposable, IDocumentExport</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
For example changing a property value in one thread while an Export method is running in a separate thread could yield unexpected results.</p>
<p><em>Optimizing your report for exporting to Excel:</em><br>
Since Excel is basically a table of rows and columns, and ActiveReports is a free form type output it may be necessary to “optimize?your ActiveReport for Excel exporting. 
When you want two controls to be in the same column when outputted to excel it is imperative that the two controls have *exactly* the same left value.  And it may also help to ensure that the font of the two controls is the same.  Attempting to make the height of the two controls similar will often times lead to a cleaner looking output in excel.  Similarly if you want two controls to be in the same row when outputted to Excel, you should make sure the two controls have exactly the same Top value, that their font is the same, and that their width is similar if not the same. 
Using RichText controls on your ActiveReports will often will not have good output in Excel.
Using the Page object's drawing methods to draw anything in the margin areas of the export will cause pagination problems.  If you draw items on the page, do not draw them in the margin area to keep the pagination accurate when printing excel exported output.
</p>
</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="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport__ctor" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.-ctor.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport__ctor">XlsExport()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the ExcelExport 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="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_AutoRowHeight" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.AutoRowHeight">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.AutoRowHeight.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_AutoRowHeight">AutoRowHeight</a>
        </td>
        <td class="markdown level1 summary"><p>True if excel should set the height of the row based on the contents of that row.  Otherwise the XlsExport will calculate the height of the rows.  In some cases this may make the output look better inside excel.  However, a value of true may adversely effect pagination when printing from excel, as it will often cause excel to stretch the height of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_DisplayGridLines" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.DisplayGridLines">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.DisplayGridLines.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_DisplayGridLines">DisplayGridLines</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns whether grid lines in workbook are displayed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_FileFormat" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.FileFormat">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.FileFormat.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_FileFormat">FileFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns which file format version the outputted file should support.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_MinColumnWidth" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.MinColumnWidth">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.MinColumnWidth.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_MinColumnWidth">MinColumnWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns the minimum width (in inches) of an empty column that will be permitted in the output.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_MinRowHeight" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.MinRowHeight">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.MinRowHeight.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_MinRowHeight">MinRowHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns the minimum height (in inches) of an empty row that will be permitted in the output.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_MultiSheet" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.MultiSheet">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.MultiSheet.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_MultiSheet">MultiSheet</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns whether each page is to be exported to it's own sheet or not.  True indicates that each page in the ActiveReport Document will be exported to a separate sheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_OpenXmlStandard" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.OpenXmlStandard">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.OpenXmlStandard.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_OpenXmlStandard">OpenXmlStandard</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the level of Open XML document conformance on exporting with Xlsx file format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_PageSettings" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.PageSettings">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.PageSettings.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_PageSettings">PageSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsPageSettings.html">XlsPageSettings</a> object for initializing Excel file print setting.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Pagination" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Pagination">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Pagination.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Pagination">Pagination</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value indicates should pagination be used for resulted xls document or not</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_RemoveVerticalSpace" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.RemoveVerticalSpace">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.RemoveVerticalSpace.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_RemoveVerticalSpace">RemoveVerticalSpace</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns a value that indicates whether completely empty vertical spacing will be removed from the output.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Security" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Security">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Security.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Security">Security</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsSecurity.html">XlsSecurity</a> object for initializing document security.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_SheetName" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.SheetName">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.SheetName.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_SheetName">SheetName</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns a value indicating the name of sheet. <b>Sheet</b> is default.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_UseCellMerging" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.UseCellMerging">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.UseCellMerging.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_UseCellMerging">UseCellMerging</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns whether cells should be merged together where applicable.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_UseCompression" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.UseCompression">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.UseCompression.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_UseCompression">UseCompression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value indicating should compression be used on exporting with Xlsx file format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_UseDefaultPalette" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.UseDefaultPalette">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.UseDefaultPalette.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_UseDefaultPalette">UseDefaultPalette</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or returns whether export document with Excel default palette.</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="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_GrapeCity_ActiveReports_Export_Html_IOutputHtml_System_String_" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,GrapeCity.ActiveReports.Export.Html.IOutputHtml,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_GrapeCity_ActiveReports_Export_Html_IOutputHtml_System_String_">Export(SectionDocument, IOutputHtml, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the specified document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.IO.Stream)">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_">Export(SectionDocument, Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the specified document to Excel.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_System_String_" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.IO.Stream,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_System_String_">Export(SectionDocument, Stream, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the specified document to Excel.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_">Export(SectionDocument, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the specified document to a .xls file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Excel.Section.XlsExport.Export.html#GrapeCity_ActiveReports_Export_Excel_Section_XlsExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_System_String_">Export(SectionDocument, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the specified document to Excel.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
