Back to Devexpress

DefaultReportDesignerContainer.Register<T, TImpl>() Method

xtrareports-devexpress-dot-xtrareports-dot-web-dot-reportdesigner-dot-defaultreportdesignercontainer-dot-register-2.md

latest4.2 KB
Original Source

DefaultReportDesignerContainer.Register<T, TImpl>() Method

Adds the specified service to the service container.

Namespace : DevExpress.XtraReports.Web.ReportDesigner

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

NuGet Package : DevExpress.Web.Reporting.Common

Declaration

csharp
public static void Register<T, TImpl>()
    where TImpl : T
vb
Public Shared Sub Register(Of T, TImpl As T)

Type Parameters

Name
T
TImpl

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-create-report-at-runtime/CS/ReportAtRuntimeMvcApp/Global.asax.cs#L27

csharp
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register<IReportProvider, CustomReportProvider>();
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.Register<IReportProvider, CustomReportProvider>();

reporting-web-forms-handle-server-side-errors/CS/DXWebApplication1/Global.asax.cs#L20

csharp
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register<IWebDocumentViewerExceptionHandler, CustomWebDocumentViewerExceptionHandler>();
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.Register<IReportDesignerExceptionHandler, CustomReportDesignerExceptionHandler>();
ASPxReportDesigner.StaticInitialize();

reporting-mvc-create-report-at-runtime/VB/ReportAtRuntimeMvcApp/ReportAtRuntimeMvcApp/Global.asax.vb#L20

vb
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register(Of IReportProvider, CustomReportProvider)()
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.Register(Of IReportProvider, CustomReportProvider)()
System.Net.ServicePointManager.SecurityProtocol = System.Net.ServicePointManager.SecurityProtocol Or System.Net.SecurityProtocolType.Tls12

reporting-web-forms-handle-server-side-errors/VB/DXWebApplication1/Global.asax.vb#L22

vb
DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.Register(Of IWebDocumentViewerExceptionHandler, CustomWebDocumentViewerExceptionHandler)()
DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.Register(Of IReportDesignerExceptionHandler, CustomReportDesignerExceptionHandler)()
ASPxReportDesigner.StaticInitialize()

See Also

DefaultReportDesignerContainer Class

DefaultReportDesignerContainer Members

DevExpress.XtraReports.Web.ReportDesigner Namespace