# GrapeCity.ActiveReports.Design.DataBindingWizard.Services.ISampleReportsProvider.GetReportStream

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_DataBindingWizard_Services_ISampleReportsProvider_GetReportStream_" data-uid="GrapeCity.ActiveReports.Design.DataBindingWizard.Services.ISampleReportsProvider.GetReportStream*">GetReportStream Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_DataBindingWizard_Services_ISampleReportsProvider_GetReportStream_" data-uid="GrapeCity.ActiveReports.Design.DataBindingWizard.Services.ISampleReportsProvider.GetReportStream*"></a>
<h4 id="GrapeCity_ActiveReports_Design_DataBindingWizard_Services_ISampleReportsProvider_GetReportStream_GrapeCity_ActiveReports_Design_DataBindingWizard_Services_SampleReportDescriptor_" data-uid="GrapeCity.ActiveReports.Design.DataBindingWizard.Services.ISampleReportsProvider.GetReportStream(GrapeCity.ActiveReports.Design.DataBindingWizard.Services.SampleReportDescriptor)">GetReportStream(SampleReportDescriptor)</h4>
<div class="markdown level1 summary"><p>Returns the report content stream for the specified report descriptor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Stream GetReportStream(SampleReportDescriptor reportDescriptor)</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="GrapeCity.ActiveReports.Design.DataBindingWizard.Services.SampleReportDescriptor.html">SampleReportDescriptor</a></td>
      <td><span class="parametername">reportDescriptor</span></td>
      <td><p>The descriptor of the report to get the stream for.</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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> representing the report's content.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_DataBindingWizard_Services_ISampleReportsProvider_GetReportStream_GrapeCity_ActiveReports_Design_DataBindingWizard_Services_SampleReportDescriptor__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method retrieves the stream associated with a specified report descriptor.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_DataBindingWizard_Services_ISampleReportsProvider_GetReportStream_GrapeCity_ActiveReports_Design_DataBindingWizard_Services_SampleReportDescriptor__examples">Examples</h5>
<pre><code class="lang-csharp">var stream = sampleReportsProvider.GetReportStream(descriptor);</code></pre>

<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 when <code class="paramref">reportDescriptor</code> is null.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
