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

TypeNameBasedReportResolver Class

Resolves reports to display in the Web Document Viewer from a report storage or based on report type names.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

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


public class TypeNameBasedReportResolver :
Public Class TypeNameBasedReportResolver
    Implements IWebDocumentViewerReportResolver


For security reasons, the default report resolver does not resolve reports by their type names.

The TypeNameBasedReportResolver class tries to open a report from a report storage or based on the report's type name if a storage is not registered.

To skip security considerations and allow the Document Viewer to open reports by type names, register the TypeNameBasedReportResolver class at the application's startup as shown below:

using DevExpress.XtraReports.Web.WebDocumentViewer;
// ...
DefaultWebDocumentViewerContainer.RegisterSingleton<IWebDocumentViewerReportResolver, TypeNameBasedReportResolver>();


See Also