# GrapeCity.Viewer.Common.IDocumentLoader

## Content

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



  <h1 id="GrapeCity_Viewer_Common_IDocumentLoader" data-uid="GrapeCity.Viewer.Common.IDocumentLoader" class="text-break">IDocumentLoader Interface
</h1>
  <div class="markdown level0 summary"><p>Defines the interface for loading documents.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Viewer.Common.html">GrapeCity.Viewer.Common</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Common.dll</h6>
  <h5 id="GrapeCity_Viewer_Common_IDocumentLoader_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IDocumentLoader</code></pre>
  </div>
  <h5 id="GrapeCity_Viewer_Common_IDocumentLoader_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Implementations of this interface are responsible for loading documents from various sources, such as files or streams,
into a format that can be used by the application. The interface also provides access to the format of the document being loaded.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Viewer_Common_IDocumentLoader_DocumentFormat" data-uid="GrapeCity.Viewer.Common.IDocumentLoader.DocumentFormat">
          <a class="xref" href="GrapeCity.Viewer.Common.IDocumentLoader.DocumentFormat.html#GrapeCity_Viewer_Common_IDocumentLoader_DocumentFormat">DocumentFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the format of the document being loaded.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Viewer_Common_IDocumentLoader_Load_GrapeCity_Viewer_Common_ILoadableFromFileAndStream_" data-uid="GrapeCity.Viewer.Common.IDocumentLoader.Load(GrapeCity.Viewer.Common.ILoadableFromFileAndStream)">
          <a class="xref" href="GrapeCity.Viewer.Common.IDocumentLoader.Load.html#GrapeCity_Viewer_Common_IDocumentLoader_Load_GrapeCity_Viewer_Common_ILoadableFromFileAndStream_">Load(ILoadableFromFileAndStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads a document from a specified source.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
