xtrareports-devexpress-dot-xtraprinting-dot-caching.md
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.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
public class DbDocumentStorage :
DocumentStorage,
IDisposable
Public Class DbDocumentStorage
Inherits DocumentStorage
Implements IDisposable
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);
Imports DevExpress.XtraPrinting.Caching
'...
Private connectionString = "Data Source=.\SQLEXPRESS;Initial Catalog=MyStorage;Integrated Security=True;MultipleActiveResultSets=True"
Private storage = New DbDocumentStorage(connectionString)
Object DocumentStorage DbDocumentStorage
See Also