A file storage used by the CachedReportSource and CachedReportSourceWeb objects to cache the document that they generate to display/export/print a report.
NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design
public class FileDocumentStorage : DocumentStorage
Public Class FileDocumentStorage Inherits DocumentStorage
You can associate the CachedReportSource component with a
FileDocumentStorage object using the CachedReportSourceBase.Storage property. A file document storage stores generated documents as a set of files in the directory specified by the FileDocumentStorage.DocumentFolder property.
The following code demonstrates how to create a
FileDocumentStorage object that stores documents in the %appData% folder.
using DevExpress.XtraPrinting.Caching; using System.IO; ... var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); var path = Path.Combine(appDataPath, "MyApplicationFolder"); var storage = new FileDocumentStorage(path);