# GrapeCity.ActiveReports.Design.Designer.Report

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Designer_Report_" data-uid="GrapeCity.ActiveReports.Design.Designer.Report*">Report Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_Report_" data-uid="GrapeCity.ActiveReports.Design.Designer.Report*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_Report" data-uid="GrapeCity.ActiveReports.Design.Designer.Report">Report</h4>
<div class="markdown level1 summary"><p>Gets or sets a value representing the currently loaded report. This object provides access to the report's layout and control properties.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public object Report { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</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.object">object</a></td>
      <td><p>The report object currently being designed.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_Report_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property allows for manipulation of the report's elements, such as adding or removing controls, modifying properties, and accessing the report's data sources.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_Report_examples">Examples</h5>
<pre><code class="lang-csharp">// Determine the file extension based on the report type.
// Don't use this property to set the report, use Desginer.LoadReport instead.
var extension = switch designer.Report {
	PageReport =&gt; ".rdlx",
	SectionReport =&gt; ".rpx",
	_ =&gt; throw new Exception("Unknown report type.")
};</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.exception">Exception</a></td>
      <td><p>Thrown if an attempt is made to set the report to an invalid or unsupported type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
