# GrapeCity.ActiveReports.Core.Document.IDocument-1

## Content

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



  <h1 id="GrapeCity_ActiveReports_Core_Document_IDocument_1" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1" class="text-break">IDocument&lt;T&gt; Interface
</h1>
  <div class="markdown level0 summary"><p>Represents the document interface</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Core.Document.html">GrapeCity.ActiveReports.Core.Document</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Document.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Core_Document_IDocument_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IDocument&lt;out T&gt; : IDisposable where T : Page, new()</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>Page Type</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_ActiveReports_Core_Document_IDocument_1_CacheToDiskEnabled" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.CacheToDiskEnabled">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.CacheToDiskEnabled.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_CacheToDiskEnabled">CacheToDiskEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this make the pages collection should use a temp file for the canvas item streams</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_CacheToDiskLocation" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.CacheToDiskLocation">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.CacheToDiskLocation.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_CacheToDiskLocation">CacheToDiskLocation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets Specifies location of CacheToDisk files - can be physical path or &quot;IsolatedStorage&quot; to use IsolatedStorage.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_DocumentVersion" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.DocumentVersion">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.DocumentVersion.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_DocumentVersion">DocumentVersion</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the document version.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_InProgress" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.InProgress">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.InProgress.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_InProgress">InProgress</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the document is currently loaded.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_Name" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.Name">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.Name.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_Pages" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.Pages">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.Pages.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_Pages">Pages</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the document's page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_Password" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.Password">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.Password.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_Password">Password</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a password to protect the saved document file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_UserPreferences" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.UserPreferences">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.UserPreferences.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_UserPreferences">UserPreferences</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the user preferences.</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_ActiveReports_Core_Document_IDocument_1_Save_System_IO_Stream_GrapeCity_ActiveReports_Document_Section_RdfFormat_" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.Save(System.IO.Stream,GrapeCity.ActiveReports.Document.Section.RdfFormat)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.Save.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_Save_System_IO_Stream_GrapeCity_ActiveReports_Document_Section_RdfFormat_">Save(Stream, RdfFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves document to the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_Save_System_IO_Stream_GrapeCity_ActiveReports_Document_Section_RdfFormat_GrapeCity_ActiveReports_Document_Section_SaveOptions_" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.Save(System.IO.Stream,GrapeCity.ActiveReports.Document.Section.RdfFormat,GrapeCity.ActiveReports.Document.Section.SaveOptions)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.Save.html#GrapeCity_ActiveReports_Core_Document_IDocument_1_Save_System_IO_Stream_GrapeCity_ActiveReports_Document_Section_RdfFormat_GrapeCity_ActiveReports_Document_Section_SaveOptions_">Save(Stream, RdfFormat, SaveOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves document to the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_IDocument_1_StateChanged" data-uid="GrapeCity.ActiveReports.Core.Document.IDocument`1.StateChanged">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.IDocument-1.StateChanged.html">StateChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event that occurs when the state is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
