# GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider

## Content

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



  <h1 id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider" class="text-break">MhtStreamProvider Class
</h1>
  <div class="markdown level0 summary"><p>This class severs as the stream provider when rendering to MHT. The class holds all the information for the different parts and writes it out to the stream provider
used by the user.</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="GrapeCity.ActiveReports.Extensibility.Rendering.IO.StreamProvider.html">StreamProvider</a></div>
    <div class="level2"><span class="xref">MhtStreamProvider</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.html">GrapeCity.ActiveReports.Rendering.IO.Mht</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class MhtStreamProvider : StreamProvider</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="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider__ctor_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.#ctor(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.-ctor.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider__ctor_System_String_">MhtStreamProvider(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.html">MhtStreamProvider</a></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_Rendering_IO_Mht_MhtStreamProvider_CreatePrimaryStream_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.CreatePrimaryStream(System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.CreatePrimaryStream.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_CreatePrimaryStream_System_String_System_String_">CreatePrimaryStream(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the primary stream for the stream provider. This is the main working stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_CreateSecondaryStream_System_String_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.CreateSecondaryStream(System.String,System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.CreateSecondaryStream.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_CreateSecondaryStream_System_String_System_String_System_String_">CreateSecondaryStream(string, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a secondary stream to add to the stream provider's secondary stream array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_Finish_GrapeCity_ActiveReports_Extensibility_Rendering_IO_StreamProvider_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.Finish(GrapeCity.ActiveReports.Extensibility.Rendering.IO.StreamProvider,System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.Finish.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_Finish_GrapeCity_ActiveReports_Extensibility_Rendering_IO_StreamProvider_System_String_System_String_">Finish(StreamProvider, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Combines all the mime parts of the primary and secondary streams into the <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.IO.StreamProvider.html">StreamProvider</a> provided by the customer.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_GetPrimaryStream" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.GetPrimaryStream">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.GetPrimaryStream.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_GetPrimaryStream">GetPrimaryStream()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the primary stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_GetSecondaryStreams" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.GetSecondaryStreams">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.GetSecondaryStreams.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_GetSecondaryStreams">GetSecondaryStreams()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the array of secondary streams.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_WriteTo_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.WriteTo(System.IO.Stream)">
          <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.Mht.MhtStreamProvider.WriteTo.html#GrapeCity_ActiveReports_Rendering_IO_Mht_MhtStreamProvider_WriteTo_System_IO_Stream_">WriteTo(Stream)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
