ReportingConfigurationBuilder.ConfigureWebDocumentViewer(Action<WebDocumentViewerConfigurationBuilder>) Method

Provides access to the WebDocumentViewerConfigurationBuilder object that exposes methods for registering custom or predefined services extending the Web Document Viewer functionality.

Namespace: DevExpress.AspNetCore.Reporting

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

Declaration

public ReportingConfigurationBuilder ConfigureWebDocumentViewer(
    Action<WebDocumentViewerConfigurationBuilder> configure
)
Public Function ConfigureWebDocumentViewer(
    configure As Action(Of WebDocumentViewerConfigurationBuilder)
) As ReportingConfigurationBuilder

Parameters

Type Name Description
Action<WebDocumentViewerConfigurationBuilder> configure

An Action<T> delegate method that allows you to configure Web Document Viewer custom services using the methods of the WebDocumentViewerConfigurationBuilder object, which is passed as the delegate parameter.

Returns

Type Description
ReportingConfigurationBuilder

A ReportingConfigurationBuilder that can be used to further configure the reporting services.

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>();
            });
        });        
    }
//...    
}

See Also