# GrapeCity.Viewer.Common.ILoadableFromFileAndStream

## Content

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



  <h1 id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream" class="text-break">ILoadableFromFileAndStream Interface
</h1>
  <div class="markdown level0 summary"><p>Defines the capability to load objects from both file and stream sources.</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_ILoadableFromFileAndStream_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface ILoadableFromFileAndStream</code></pre>
  </div>
  <h5 id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This interface is designed for objects that can be initialized or populated from external sources such as files or streams.
It supports loading from a simple file path, a stream, or a stream with an associated base URI for resolving relative paths or URIs within the loaded data.</p>
</div>
  <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_ILoadableFromFileAndStream_LoadFromFile_System_IO_FileInfo_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromFile(System.IO.FileInfo)">
          <a class="xref" href="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromFile.html#GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromFile_System_IO_FileInfo_">LoadFromFile(FileInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from a specified file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_System_IO_Stream_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream(System.IO.Stream)">
          <a class="xref" href="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream.html#GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_System_IO_Stream_">LoadFromStream(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from a specified stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_System_IO_Stream_System_Uri_" data-uid="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream(System.IO.Stream,System.Uri)">
          <a class="xref" href="GrapeCity.Viewer.Common.ILoadableFromFileAndStream.LoadFromStream.html#GrapeCity_Viewer_Common_ILoadableFromFileAndStream_LoadFromStream_System_IO_Stream_System_Uri_">LoadFromStream(Stream, Uri)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from a specified stream, using a base URI for resolving relative URIs.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
