StartupExtensions.AddDefaultReportingControllers(IMvcBuilder) Method

Explicitly adds the DevExpress.AspNetCore.Reporting assembly as an application part so that reporting controllers are available in the MVC ASP.NET Core application.

Namespace: DevExpress.AspNetCore.Reporting

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


public static IMvcBuilder AddDefaultReportingControllers(
    this IMvcBuilder builder
Public Shared Function AddDefaultReportingControllers(
    builder As IMvcBuilder
) As IMvcBuilder


Type Name Description
Microsoft.Extensions.DependencyInjection.IMvcBuilder builder

The IMvcBuilder instance this method extends.


Type Description

A <xref:Microsoft.Extensions.DependencyInjection.IMvcBuilder> that can be used to further configure the MVC services.

Use this method to explicitly add the default MVC reporting controllers for processing requests with default routes.

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

public class Startup {
    public void ConfigureServices(IServiceCollection services) {

You can implement custom MVC reporting controllers to perform specific manipulations while processing requests. For this purpose, inherit from the ReportDesignerController, WebDocumentViewerController and/or QueryBuilderController class and specify a URI to each of them using the ReportDesignerHandlerUri(String), ReportPreviewHandlerUri(String) and QueryBuilderHandlerUri(String) methods of the ReportDesignerBuilder object and the HandlerUri(String) method of the WebDocumentViewerBuilder object.

See Also