# GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save*">Save Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save__1_System_IO_Stream___0_System_Boolean_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save``1(System.IO.Stream,``0,System.Boolean)">Save&lt;T&gt;(Stream, T, bool)</h4>
<div class="markdown level1 summary"><p>Save snapshot to specified stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Save&lt;T&gt;(Stream output, T data, bool formatted = false)</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.stream">Stream</a></td>
      <td><span class="parametername">output</span></td>
      <td><p>output stream</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">T</span></td>
      <td><span class="parametername">data</span></td>
      <td><p>snapshot data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">formatted</span></td>
      <td><p>specifies if snapshot data is formatted</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>snapshot Type</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save__1_System_IO_TextWriter___0_System_Boolean_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save``1(System.IO.TextWriter,``0,System.Boolean)">Save&lt;T&gt;(TextWriter, T, bool)</h4>
<div class="markdown level1 summary"><p>Save snapshot using specified textwriter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Save&lt;T&gt;(TextWriter textWriter, T data, bool formatted = false)</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.textwriter">TextWriter</a></td>
      <td><span class="parametername">textWriter</span></td>
      <td><p>text writer</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">T</span></td>
      <td><span class="parametername">data</span></td>
      <td><p>snapshot data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">formatted</span></td>
      <td><p>specifies if snapshot data is formatted</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>snapshot Type</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataProcessing_Persistence_SnapshotSerializer_Save__1_System_IO_FileInfo___0_System_Boolean_" data-uid="GrapeCity.ActiveReports.Rendering.DataProcessing.Persistence.SnapshotSerializer.Save``1(System.IO.FileInfo,``0,System.Boolean)">Save&lt;T&gt;(FileInfo, T, bool)</h4>
<div class="markdown level1 summary"><p>Save snapshot to specified file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Save&lt;T&gt;(FileInfo file, T data, bool formatted = false)</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.fileinfo">FileInfo</a></td>
      <td><span class="parametername">file</span></td>
      <td><p>output file</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">T</span></td>
      <td><span class="parametername">data</span></td>
      <td><p>snapshot data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">formatted</span></td>
      <td><p>specifies if snapshot data is formatted</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>snapshot Type</p>
</td>
    </tr>
  </tbody>
</table>
</div>
