Back to Devexpress

WebDocumentViewerConfigurationBuilder Class

xtrareports-devexpress-dot-aspnetcore-dot-reporting-b3b1fa2d.md

latest9.4 KB
Original Source

WebDocumentViewerConfigurationBuilder Class

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

Namespace : DevExpress.AspNetCore.Reporting

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

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public class WebDocumentViewerConfigurationBuilder
vb
Public Class WebDocumentViewerConfigurationBuilder

The following members return WebDocumentViewerConfigurationBuilder objects:

Show 23 links

Remarks

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, call the ConfigureReportingServices(IServiceCollection, Action<ReportingConfigurationBuilder>) method at the application startup.

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

csharp
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();

See Register Services in the Document Viewer for a complete list of available services and their registration methods.

Inheritance

Object WebDocumentViewerConfigurationBuilder

Extension Methods

UseAzureEnvironment()

UseAzureEnvironment(String)

UseAzureEnvironment(String, String)

UseAzureCachedReportSourceBuilder()

UseAzureCachedReportSourceBuilder(String)

UseAzureCachedReportSourceBuilder(String, StorageSynchronizationMode)

See Also

WebDocumentViewerConfigurationBuilder Members

DevExpress.AspNetCore.Reporting Namespace