Skip to main content

FileDocumentStorage Class

A file storage used by the CachedReportSource and CachedReportSourceWeb objects to cache the document that they generate to display/export/print a report.

Namespace: DevExpress.XtraPrinting.Caching

Assembly: DevExpress.Printing.v24.2.Core.dll

Declaration

public class FileDocumentStorage :
    DocumentStorage

Remarks

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); 

Inheritance

Object
DocumentStorage
FileDocumentStorage
See Also