# GrapeCity.ActiveReports.Document.SectionDocument.CacheToDisk

## Content

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



<h1 id="GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.CacheToDisk*">CacheToDisk Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.CacheToDisk*"></a>
<h4 id="GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.CacheToDisk">CacheToDisk</h4>
<div class="markdown level1 summary"><p>Gets or sets whether indicating whether a document should use memory cache exclusively or be able to cache pages on disk.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public bool CacheToDisk { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value. A <code>true</code> value means that the pages collection will use a temporary file for the canvas item streams, otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If you are not experiencing issues, kindly do not modify this property. To prevent performance degradations, only make changes for really large documents in conjunction with <a class="xref" href="../MESCIUS.ActiveReports.Core.Document/GrapeCity.ActiveReports.Core.Document.DocumentBase-1.CacheToDiskLocation_1.html#GrapeCity_ActiveReports_Core_Document_DocumentBase_1_CacheToDiskLocation">CacheToDiskLocation</a>.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionDocument = new GrapeCity.ActiveReports.Document.SectionDocument();
sectionDocument.CacheToDisk = true;
sectionDocument.CacheToDiskLocation = System.IO.Path.GetTempPath();</code></pre>

</div>
