DefaultWebDocumentViewerContainer.RegisterConnectionProviderFactory<T>() Method
Registers a factory that returns an object implementing the IConnectionProviderService interface.
Namespace: DevExpress.XtraReports.Web.WebDocumentViewer
Assembly: DevExpress.XtraReports.v19.2.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
public static void RegisterConnectionProviderFactory<T>()
where T : IConnectionProviderFactory
Type Parameters
Name |
---|
T |
Remarks
Call the RegisterConnectionProviderFactory<T> method at the application startup in the Global.asax file to register a custom IConnectionProviderService implementation in the Web Document Viewer.
using DevExpress.XtraReports.Web.WebDocumentViewer;
// ...
void Application_Start(object sender, EventArgs e) {
DefaultWebDocumentViewerContainer.RegisterConnectionProviderFactory<MyConnectionProviderFactory>();
}
See Register Services in the Document Viewer for a complete list of available services and their registration methods.
See Also