# GrapeCity.ActiveReports.Design.Advanced.DesignerForm.LoadReport

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Advanced_DesignerForm_LoadReport_" data-uid="GrapeCity.ActiveReports.Design.Advanced.DesignerForm.LoadReport*">LoadReport Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Advanced_DesignerForm_LoadReport_" data-uid="GrapeCity.ActiveReports.Design.Advanced.DesignerForm.LoadReport*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Advanced_DesignerForm_LoadReport_System_String_" data-uid="GrapeCity.ActiveReports.Design.Advanced.DesignerForm.LoadReport(System.String)">LoadReport(string)</h4>
<div class="markdown level1 summary"><p>Loads a report from the specified file into the designer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadReport(string fileName)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The full path to the report file that should be loaded.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Advanced_DesignerForm_LoadReport_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method attempts to open and load a report file into the designer for editing. Before loading the new report,
it checks if there are any unsaved changes in the current session and prompts the user to save them. If the user
cancels the save operation, the loading process is aborted to prevent loss of unsaved work. This method supports
loading of report files compatible with the ActiveReports designer.</p>
</div>
</div>
