# GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_IO_FileStreamProvider__ctor_" data-uid="GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider.#ctor*">FileStreamProvider Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_IO_FileStreamProvider__ctor_" data-uid="GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_IO_FileStreamProvider__ctor_System_IO_DirectoryInfo_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider.#ctor(System.IO.DirectoryInfo,System.String)">FileStreamProvider(DirectoryInfo, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider.html">FileStreamProvider</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FileStreamProvider(DirectoryInfo baseOutputDirectory, string outputFileNamePrefix)</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="https://learn.microsoft.com/dotnet/api/system.io.directoryinfo">DirectoryInfo</a></td>
      <td><span class="parametername">baseOutputDirectory</span></td>
      <td><p>a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.directoryinfo">DirectoryInfo</a> to save the file streams 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">outputFileNamePrefix</span></td>
      <td><p>a string value indicating the name to place at the beginning of the files created.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><p>Thrown if the base output directory argument is null.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
