The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll


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


Name Type Description
builder IMvcBuilder

The IMvcBuilder instance this method extends.


Type Description

A 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