Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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