# GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument

## Content

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



<h1 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*">LoadDocument Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_System_IO_Stream_GrapeCity_Viewer_Common_DocumentFormat_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(System.IO.Stream,GrapeCity.Viewer.Common.DocumentFormat)">LoadDocument(Stream, DocumentFormat)</h4>
<div class="markdown level1 summary"><p>Loads the document from a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadDocument(Stream stream, DocumentFormat format)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream containing the report. Note: The Page report with master file should contain the full path to the master file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Viewer.Common/GrapeCity.Viewer.Common.DocumentFormat.html">DocumentFormat</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>The document format.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_System_String_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(System.String)">LoadDocument(string)</h4>
<div class="markdown level1 summary"><p>Loads a report from the specified file path.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadDocument(string filePath)</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">filePath</span></td>
      <td><p>The file to load.</p>
</td>
    </tr>
  </tbody>
</table>
<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 if the <code class="paramref">filePath</code> is null or empty.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_GrapeCity_Viewer_Common_IDocumentLoader_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(GrapeCity.Viewer.Common.IDocumentLoader)">LoadDocument(IDocumentLoader)</h4>
<div class="markdown level1 summary"><p>Loads a report from the specified <a class="xref" href="../MESCIUS.ActiveReports.Viewer.Common/GrapeCity.Viewer.Common.IDocumentLoader.html">IDocumentLoader</a> parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadDocument(IDocumentLoader parameter)</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.Viewer.Common/GrapeCity.Viewer.Common.IDocumentLoader.html">IDocumentLoader</a></td>
      <td><span class="parametername">parameter</span></td>
      <td><p>The document loader parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_GrapeCity_ActiveReports_Document_PageDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(GrapeCity.ActiveReports.Document.PageDocument)">LoadDocument(PageDocument)</h4>
<div class="markdown level1 summary"><p>Loads the specified page document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadDocument(PageDocument pageDocument)</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.Document.PageDocument.html">PageDocument</a></td>
      <td><span class="parametername">pageDocument</span></td>
      <td><p>The page document to load.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_GrapeCity_ActiveReports_PageReport_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(GrapeCity.ActiveReports.PageReport)">LoadDocument(PageReport)</h4>
<div class="markdown level1 summary"><p>Loads the specified page 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 LoadDocument(PageReport pageReport)</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.PageReport.html">PageReport</a></td>
      <td><span class="parametername">pageReport</span></td>
      <td><p>The page report to load.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_GrapeCity_ActiveReports_SectionReport_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(GrapeCity.ActiveReports.SectionReport)">LoadDocument(SectionReport)</h4>
<div class="markdown level1 summary"><p>Loads the specified 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 LoadDocument(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 section report to load.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_LoadDocument_GrapeCity_ActiveReports_Document_SectionDocument_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadDocument(GrapeCity.ActiveReports.Document.SectionDocument)">LoadDocument(SectionDocument)</h4>
<div class="markdown level1 summary"><p>Loads the specified section document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadDocument(SectionDocument document)</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.Document.SectionDocument.html">SectionDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The section document to load.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
