# GrapeCity.ActiveReports.PageReport.Save

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReport_Save_" data-uid="GrapeCity.ActiveReports.PageReport.Save*">Save Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReport_Save_" data-uid="GrapeCity.ActiveReports.PageReport.Save*"></a>
<h4 id="GrapeCity_ActiveReports_PageReport_Save_System_IO_FileInfo_" data-uid="GrapeCity.ActiveReports.PageReport.Save(System.IO.FileInfo)">Save(FileInfo)</h4>
<div class="markdown level1 summary"><p>Saves the report to a 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 Save(FileInfo file)</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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.fileinfo">FileInfo</a> value indicating the save path.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReport_Save_System_IO_FileInfo__examples">Examples</h5>
<pre><code class="lang-csharp">private void SaveReport(FileInfo fInfo, PageReport pageReport)
{
	pageReport.Save(fInfo);
}</code></pre>



<a id="GrapeCity_ActiveReports_PageReport_Save_" data-uid="GrapeCity.ActiveReports.PageReport.Save*"></a>
<h4 id="GrapeCity_ActiveReports_PageReport_Save_System_Xml_XmlWriter_" data-uid="GrapeCity.ActiveReports.PageReport.Save(System.Xml.XmlWriter)">Save(XmlWriter)</h4>
<div class="markdown level1 summary"><p>Saves this report definition 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 Save(XmlWriter xmlWriter)</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><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">xmlWriter</span></td>
      <td><p>A <span class="xref">System.Xml.XmlWriter</span> value contains the serialized report.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReport_Save_System_Xml_XmlWriter__examples">Examples</h5>
<pre><code class="lang-csharp">private void SaveReport(Stream outStream, PageReport pageReport)
{
	using (var writer = XmlWriter.Create(outStream))
	{
		pageReport.Save(writer);
	}
}</code></pre>

</div>
