ActiveReports 19 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Document Namespace / SectionDocument Class / CacheToDisk Property
Example

In This Topic
    CacheToDisk Property
    In This Topic
    Gets or sets whether indicating whether a document should use memory cache exclusively or be able to cache pages on disk.
    Syntax
    'Declaration
     
    Public Property CacheToDisk As Boolean
    public bool CacheToDisk {get; set;}

    Property Value

    A System.Boolean value. A true value means that the pages collection will use a temporary file for the canvas item streams, otherwise, false.
    Remarks
    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 GrapeCity.ActiveReports.Core.Document.DocumentBase<PageType>.CacheToDiskLocation.
    Example
    var sectionDocument = new GrapeCity.ActiveReports.Document.SectionDocument();
    sectionDocument.CacheToDisk = true;
    sectionDocument.CacheToDiskLocation = System.IO.Path.GetTempPath();
    See Also