# GrapeCity.ActiveReports.Design.Designer.NewReport

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Designer_NewReport_" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport*">NewReport Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_NewReport_" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_NewReport" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport">NewReport()</h4>
<div class="markdown level1 summary"><p>Initializes the designer with a new report layout of the default type, which is Section.
This method serves as a convenience wrapper for creating a new Section report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewReport()</code></pre>
</div>


<a id="GrapeCity_ActiveReports_Design_Designer_NewReport_" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_NewReport_GrapeCity_ActiveReports_Design_DesignerReportType_" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport(GrapeCity.ActiveReports.Design.DesignerReportType)">NewReport(DesignerReportType)</h4>
<div class="markdown level1 summary"><p>Initializes the designer with a new report layout of the specified type. This method simplifies the process of creating a new report by allowing
the caller to specify the type of report they wish to create, such as Section or Page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewReport(DesignerReportType type)</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.DesignerReportType.html">DesignerReportType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Specifies the type of the new report to be created. The type is defined by the <a class="xref" href="GrapeCity.ActiveReports.Design.DesignerReportType.html">DesignerReportType</a> enumeration,
which includes options for Section and Page report types among others.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_NewReport_GrapeCity_ActiveReports_Design_DesignerReportType__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is part of the public API of the designer and can be used to programmatically initiate the creation of a new report within the designer
environment. It is particularly useful in scenarios where the type of report to be created is determined at runtime based on user input or other
dynamic conditions.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_NewReport_GrapeCity_ActiveReports_Design_DesignerReportType__examples">Examples</h5>
<p>Creates new empty report of specific type and initializes the designer with it.</p>
<pre><code class="lang-csharp">//Assume that '_designer' is a Designer object
_designer.NewReport(DesignerReportType.Rdl);</code></pre>



<a id="GrapeCity_ActiveReports_Design_Designer_NewReport_" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_NewReport_GrapeCity_ActiveReports_Design_DesignerReportType_System_Boolean_" data-uid="GrapeCity.ActiveReports.Design.Designer.NewReport(GrapeCity.ActiveReports.Design.DesignerReportType,System.Boolean)">NewReport(DesignerReportType, bool)</h4>
<div class="markdown level1 summary"><p>Initializes the designer with a new report layout of the specified type and, if requested, launches the Data Source Dialog.
This method facilitates the creation of a new report by allowing the specification of the report type (e.g., Section, Page) and
provides an option to immediately launch the Data Source Dialog, which assists in setting up data connections and queries for the report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewReport(DesignerReportType type, bool launchDataSourceWizard)</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.DesignerReportType.html">DesignerReportType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of the new report to be created, as defined by the <a class="xref" href="GrapeCity.ActiveReports.Design.DesignerReportType.html">DesignerReportType</a> enumeration.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">launchDataSourceWizard</span></td>
      <td><p>If set to <code>true</code>, the Data Source Dialog is launched after the report is initialized; otherwise, it is not launched.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_NewReport_GrapeCity_ActiveReports_Design_DesignerReportType_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The Data Source Dialog is a tool that simplifies the process of connecting a report to data by guiding the user through the steps required to define
a data source and create queries. This method is particularly useful when creating a new report that requires immediate data binding.</p>
</div>
</div>
