# GrapeCity.ActiveReports.Web.Designer.ReportExtensions.ToXmlStream

## Content

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



<h1 id="GrapeCity_ActiveReports_Web_Designer_ReportExtensions_ToXmlStream_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportExtensions.ToXmlStream*">ToXmlStream Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Web_Designer_ReportExtensions_ToXmlStream_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportExtensions.ToXmlStream*"></a>
<h4 id="GrapeCity_ActiveReports_Web_Designer_ReportExtensions_ToXmlStream_GrapeCity_ActiveReports_PageReportModel_Report_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportExtensions.ToXmlStream(GrapeCity.ActiveReports.PageReportModel.Report)">ToXmlStream(Report)</h4>
<div class="markdown level1 summary"><p>Saves the report to a stream in XML format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Stream ToXmlStream(this Report report)</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.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Report.html">Report</a></td>
      <td><span class="parametername">report</span></td>
      <td><p>The report to be saved.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A stream containing the report in XML format.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Web_Designer_ReportExtensions_ToXmlStream_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportExtensions.ToXmlStream*"></a>
<h4 id="GrapeCity_ActiveReports_Web_Designer_ReportExtensions_ToXmlStream_GrapeCity_ActiveReports_SectionReport_" data-uid="GrapeCity.ActiveReports.Web.Designer.ReportExtensions.ToXmlStream(GrapeCity.ActiveReports.SectionReport)">ToXmlStream(SectionReport)</h4>
<div class="markdown level1 summary"><p>Saves the SectionReport to a stream in XML format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Stream ToXmlStream(this SectionReport report)</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.SectionReport.html">SectionReport</a></td>
      <td><span class="parametername">report</span></td>
      <td><p>The SectionReport to be saved.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A stream containing the SectionReport in XML format.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
