Back to Devexpress

DefaultWebDocumentViewerContainer.UseReportStorageExtensionReportResolver() Method

xtrareports-devexpress-dot-xtrareports-dot-web-dot-webdocumentviewer-dot-defaultwebdocumentviewercontainer-f7375d0f.md

latest2.9 KB
Original Source

DefaultWebDocumentViewerContainer.UseReportStorageExtensionReportResolver() Method

Registers an implementation of the IWebDocumentViewerReportResolver interface based on an existing ReportStorageWebExtension.

Namespace : DevExpress.XtraReports.Web.WebDocumentViewer

Assembly : DevExpress.XtraReports.v25.2.Web.dll

NuGet Package : DevExpress.Web.Reporting.Common

Declaration

csharp
public static void UseReportStorageExtensionReportResolver()
vb
Public Shared Sub UseReportStorageExtensionReportResolver

Remarks

Call the UseReportStorageExtensionReportResolver method at the application startup in the Global.asax file as shown below:

csharp
using DevExpress.XtraReports.Web.WebDocumentViewer;
// ...

protected void Application_Start(object sender, System.EventArgs e) {
    // ...
    DefaultWebDocumentViewerContainer.UseReportStorageExtensionReportResolver();
}
vb
Imports DevExpress.XtraReports.Web.WebDocumentViewer
' ...

Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    ' ...
    DefaultWebDocumentViewerContainer.UseReportStorageExtensionReportResolver()
End Sub

A custom IWebDocumentViewerReportResolver implementation is used when calling the client ASPxClientWebDocumentViewer.OpenReport method and when restoring a report by its URL.

See Register Services in the Document Viewer for a complete list of available services and their registration methods.

See Also

DefaultWebDocumentViewerContainer Class

DefaultWebDocumentViewerContainer Members

DevExpress.XtraReports.Web.WebDocumentViewer Namespace