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
Declaration
Parameters
Name | Type | Description |
---|---|---|
builder | IMvcBuilder | The IMvcBuilder instance this method extends. |
Returns
Type | Description |
---|---|
IMvcBuilder | A IMvcBuilder that can be used to further configure the MVC services. |
Remarks
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) {
services.AddDevExpressControls();
services.AddMvc().AddDefaultReportingControllers();
}
//...
}
Note
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.