Skip to main content

DbDocumentStorage Class

A database storage used by the CachedReportSource component to cache the document that it generates to display/export/print a report.

Namespace: DevExpress.XtraPrinting.Caching

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public class DbDocumentStorage :
    DocumentStorage,
    IDisposable

Remarks

You can associate the CachedReportSource component with a DbDocumentStorage object to store the generated documents in the table of the database specified by the ConnectionString/ConnectionName property.

The following code demonstrates how to create a DbDocumentStorage object that stores documents in a SQL Server Express database.

using DevExpress.XtraPrinting.Caching; 
... 
var connectionString = "Data Source=.\SQLEXPRESS;Initial Catalog=MyStorage;Integrated Security=True;MultipleActiveResultSets=True"; 
var storage = new DbDocumentStorage(connectionString);  

Inheritance

Object
DocumentStorage
DbDocumentStorage
See Also