# GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export

## Content

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



<h1 id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export*">Export Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export*"></a>
<h4 id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.String)">Export(SectionDocument, string)</h4>
<div class="markdown level1 summary"><p>Exports the specified document to html.</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(SectionDocument document, string filePath)</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="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The ActiveReports Document object to export.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>The file name and path to save the main html file to.
If multiple filenames are generated (such as images, or table of contents pages) this argument's value will be used as a prefix for the other file names.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.IDocumentExport.Export.html#GrapeCity_ActiveReports_Export_IDocumentExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_">IDocumentExport.Export(SectionDocument, string)</a></div>


<a id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export*"></a>
<h4 id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.String,System.String)">Export(SectionDocument, string, string)</h4>
<div class="markdown level1 summary"><p>Exports the specified document to HTML.</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(SectionDocument document, string filePath, string pagesRange)</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="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a> to export.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>The file name and path to save the main html file to.
If multiple filenames are generated (such as images, or table of contents pages) this argument's value will be used as a prefix for the other file names.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">pagesRange</span></td>
      <td><p>A range of page numbers to export seperated by a comma.  Between each comma can have a single page number, or range of pages with a hyphen between the starting and ending page numbers in the range.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.IDocumentExport.Export.html#GrapeCity_ActiveReports_Export_IDocumentExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_String_System_String_">IDocumentExport.Export(SectionDocument, string, string)</a></div>


<a id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export*"></a>
<h4 id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_System_String_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.IO.Stream,System.String)">Export(SectionDocument, Stream, string)</h4>
<div class="markdown level1 summary"><p>Exports the specified <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a>to HTML in a MIME MHT format (as can be saved from Internet Explorer) which includes the HTML and all images in a single 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(SectionDocument document, Stream outputStream, string pagesRange)</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="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a> to export.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">outputStream</span></td>
      <td><p>The destination <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> to save the MHT file to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">pagesRange</span></td>
      <td><p>A range of page numbers to export seperated by a comma.  Between each comma can have a single page number, or range of pages with a hyphen between the starting and ending page numbers in the range.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.IDocumentExport.Export.html#GrapeCity_ActiveReports_Export_IDocumentExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_System_String_">IDocumentExport.Export(SectionDocument, Stream, string)</a></div>


<a id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export*"></a>
<h4 id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_GrapeCity_ActiveReports_Export_Html_IOutputHtml_System_String_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,GrapeCity.ActiveReports.Export.Html.IOutputHtml,System.String)">Export(SectionDocument, IOutputHtml, string)</h4>
<div class="markdown level1 summary"><p>Provides advanced control over how the HtmlExport stores all output, including all html pages, images, bookmark pages, etc...</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(SectionDocument document, IOutputHtml outputHandler, string pageRange)</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="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The ActiveReports Document to export to HTML.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.Html.IOutputHtml.html">IOutputHtml</a></td>
      <td><span class="parametername">outputHandler</span></td>
      <td><p>An implementation of <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.Html.IOutputHtml.html">IOutputHtml</a> that will receive all HTML output.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">pageRange</span></td>
      <td><p>A range of page numbers to export seperated by a comma.  Between each comma can have a single page number, or range of pages with a hyphen between the starting and ending page numbers in the range.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.IDocumentExport.Export.html#GrapeCity_ActiveReports_Export_IDocumentExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_GrapeCity_ActiveReports_Export_Html_IOutputHtml_System_String_">IDocumentExport.Export(SectionDocument, IOutputHtml, string)</a></div>


<a id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export*"></a>
<h4 id="GrapeCity_ActiveReports_Export_Html_Section_HtmlExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Export.Html.Section.HtmlExport.Export(GrapeCity.ActiveReports.Document.SectionDocument,System.IO.Stream)">Export(SectionDocument, Stream)</h4>
<div class="markdown level1 summary"><p>Exports the specified <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a>to HTML in a MIME MHT format (as can be saved from Internet Explorer) which includes the HTML and all images in a single 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(SectionDocument document, Stream outputStream)</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="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a> to export.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">outputStream</span></td>
      <td><p>The destination <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> to save the MHT file to.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Export.IDocumentExport.Export.html#GrapeCity_ActiveReports_Export_IDocumentExport_Export_GrapeCity_ActiveReports_Document_SectionDocument_System_IO_Stream_">IDocumentExport.Export(SectionDocument, Stream)</a></div>
</div>
