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.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
#Declaration
public ReportingConfigurationBuilder ConfigureWebDocumentViewer(
Action<WebDocumentViewerConfigurationBuilder> configure
)
#Parameters
Name | Type | Description |
---|---|---|
configure | Action<Web |
An Action |
#Returns
Type | Description |
---|---|
Reporting |
A Reporting |
#Remarks
The code below registers a custom IWebDocumentViewerDrillThroughProcessor service for the Web Document Viewer at the application startup.
using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDevExpressControls();
builder.Services.AddMvc();
builder.Services.ConfigureReportingServices(configurator => {
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
viewerConfigurator.RegisterWebDocumentViewerDrillThroughProcessor<customProcessor>();
});
});
var app = builder.Build();