The requested page is not available for the requested platform. You are viewing the content for Default platform.

IDocumentStorageProvider Interface

When implemented by a class, manages document storages.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v19.1.Web.dll

Declaration

public interface IDocumentStorageProvider
Public Interface IDocumentStorageProvider

Remarks

When a CachedReportSourceWeb object generates a report document, it caches each generated page in a storage. By default, a MemoryDocumentStorage storage is created for every document. Implement this interface to create another type storage (e.g. DbDocumentStorage or a custom one).

The following code demonstrates how to register a custom document storage provider in a .NET Framework application:

void Application_Start(object sender, EventArgs e) {
    DefaultWebDocumentViewerContainer.Register<IDocumentStorageProvider, CustomDocumentStorageProvider>();
}

The following code demonstrates how to register your IDocumentStorageProvider in a .NET Core application.

using DevExpress.XtraReports.Web.WebDocumentViewer;
//...
public void ConfigureServices(IServiceCollection services) {
    //...
    services.AddSingleton<IDocumentStorageProvider>(new CustomDocumentStorageProvider());
}

You can utilize a predefined file document storage by calling the UseFileDocumentStorage (.NET Framework) / UseFileDocumentStorage (.NET Core) method.

See Also