xtrareports-devexpress-dot-xtrareports-dot-web-dot-webdocumentviewer-dot-defaultwebdocumentviewercontainer-dot-register-2.md
Adds the specified service to the service container.
Namespace : DevExpress.XtraReports.Web.WebDocumentViewer
Assembly : DevExpress.XtraReports.v25.2.Web.dll
NuGet Package : DevExpress.Web.Reporting.Common
public static void Register<T, TImpl>()
where TImpl : T
Public Shared Sub Register(Of T, TImpl As T)
| Name |
|---|
| T |
| TImpl |
See Register Services in the Document Viewer for a complete list of available services and their registration methods.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Register<T, TImpl>() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
reporting-mvc-implement-a-custom-authorization-service/CS/AuthorizationService/Global.asax.cs#L11
DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required;
DefaultWebDocumentViewerContainer.Register<WebDocumentViewerOperationLogger, Services.OperationLogger>();
DefaultWebDocumentViewerContainer.Register<IWebDocumentViewerAuthorizationService, Services.OperationLogger>();
reporting-web-mvc-email-report/CS/CustomDocumentOperationService/Global.asax.cs#L20
DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Default;
DefaultWebDocumentViewerContainer.Register<DocumentOperationService, Services.CustomDocumentOperationService>();
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register<IReportProvider, Services.ReportProvider>();
reporting-web-mvc-viewer-clustering/CS/DevExpressWebFarmsWebGardenReporting/Global.asax.cs#L17
DefaultWebDocumentViewerContainer.UseCachedReportSourceBuilder();
DefaultWebDocumentViewerContainer.Register<ICachedReportSourceWebResolver, CustomCachedReportSourceWebResolver>();
DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWebExtension1(Server.MapPath("~/CustomSharedDesignerStorage")));
reporting-web-forms-view-report/CS/Global.asax.cs#L15
protected void Application_Start(object sender, EventArgs e) {
DefaultWebDocumentViewerContainer.Register<IReportProvider, CustomReportProvider>();
DevExpress.XtraReports.Web.ASPxWebDocumentViewer.StaticInitialize();
reporting-mvc-create-report-at-runtime/CS/ReportAtRuntimeMvcApp/Global.asax.cs#L26
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register<IReportProvider, CustomReportProvider>();
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.Register<IReportProvider, CustomReportProvider>();
reporting-mvc-implement-a-custom-authorization-service/VB/AuthorizationService/Global.asax.vb#L13
DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required
DefaultWebDocumentViewerContainer.Register(Of WebDocumentViewerOperationLogger, Services.OperationLogger)()
DefaultWebDocumentViewerContainer.Register(Of IWebDocumentViewerAuthorizationService, Services.OperationLogger)()
reporting-web-mvc-email-report/VB/CustomDocumentOperationService/Global.asax.vb#L22
DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Default
DefaultWebDocumentViewerContainer.Register(Of DocumentOperationService, CustomDocumentOperationService)()
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register(Of IReportProvider, ReportProvider)()
reporting-mvc-display-information-in-xrpageinfo/VB/WebDocumentViewer_UserName_VB/Global.asax.vb#L15
DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(New CustomReportStorageWebExtension(Server.MapPath("/Reports")))
DefaultWebDocumentViewerContainer.Register(Of WebDocumentViewerOperationLogger, CustomWebDocumentViewerOperationLogger)()
DefaultWebDocumentViewerContainer.DisableCachedDocumentSource()
reporting-web-mvc-viewer-clustering/VB/DevExpressWebFarmsWebGardenReporting/Global.asax.vb#L18
DefaultWebDocumentViewerContainer.UseCachedReportSourceBuilder()
DefaultWebDocumentViewerContainer.Register(Of ICachedReportSourceWebResolver, CustomCachedReportSourceWebResolver)()
DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(New ReportStorageWebExtension1(Server.MapPath("~/CustomSharedDesignerStorage")))
reporting-web-forms-view-report/VB/Global.asax.vb#L16
Protected Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
DefaultWebDocumentViewerContainer.Register(Of IReportProvider, CustomReportProvider)()
DevExpress.XtraReports.Web.ASPxWebDocumentViewer.StaticInitialize()
See Also
DefaultWebDocumentViewerContainer Class