WebDocumentViewerConfigurationBuilder Class

Exposes methods for registering additional services specific for the Web Document Viewer.

Namespace: DevExpress.AspNetCore.Reporting

Assembly: DevExpress.AspNetCore.Reporting.v18.2.dll

Declaration

public class WebDocumentViewerConfigurationBuilder :
    Object
Public Class WebDocumentViewerConfigurationBuilder
    Inherits Object

You can register custom and/or predefined services to provide specific functionality to the Web Document Viewer. For this purpose, use the methods exposed by the WebDocumentViewerConfigurationBuilder class. To access a WebDocumentViewerConfigurationBuilder object, use the ConfigureReportingServices(IServiceCollection, Action<ReportingConfigurationBuilder>) method within the Startup's ConfigureServices method.

The code below registers a custom IWebDocumentViewerDrillThroughProcessor service for the Web Document Viewer.

using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
//... 

public class Startup {
//... 
    public void ConfigureServices(IServiceCollection services) {
        services.AddDevExpressControls();
        services.AddMvc(); 

        services.ConfigureReportingServices(configurator => {
            configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
                viewerConfigurator.RegisterWebDocumentViewerDrillThroughProcessor<customProcessor>();
            });
        });        
    }
//...    
}

Inheritance

Object
WebDocumentViewerConfigurationBuilder

See Also