Skip to main content

Create an Angular Front-End Application with a Report Designer

  • 5 minutes to read

You should create two projects: a server (backend) project and a client (frontend) part that includes all the necessary styles, scripts, and HTML-templates.


You can use the DevExpress Angular SPA template to create an Angular Reporting application. For more information, refer to the following help topic: Use Visual Studio Templates to Create an Angular Application with a Report Designer.

Server (Back-End) Application

Perform the steps described in one of the following topics to create a backend application:

Client (Front-End) Application

Perform the following steps to create and configure an Angular client-side application:

Create New Application

  1. Install Node.js and npm if they do not exist on your machine. Check whether the latest version of npm is installed.

  2. Open the command prompt and install the Angular CLI (command line interface tool) globally.

    npm install -g @angular/cli
  3. Select a folder to store all the files related to the client-side functionality. Navigate to that folder and run the following command:

    ng new angular-report-designer --strict=false

    This command creates the angular-report-designer folder that contains a new Angular application. Refer to the Angular documentation for information on the application structure.

Install Libraries

  1. Change your current directory to the project root folder and install the following packages:

    cd angular-report-designer
    npm install devextreme@23.1-stable devexpress-richedit@23.1-stable @devexpress/analytics-core@23.1-stable devexpress-reporting-angular@23.1-stable


    Version numbers should be the same and match the version number of DevExpress libraries in the backend application.

    The devexpress-richedit package enables the Rich Text inline editor for the XRRichText control. If you do not need the Rich Text inline editor in your reports, do not install the devexpress-richedit package. This reduces the distribution package size.

Create the Angular Component

  1. Add the DxReportDesignerModule module to the \src\app\app.module.ts file:

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { DxReportDesignerModule } from 'devexpress-reporting-angular';
    import { AppRoutingModule } from './app-routing.module';
    import { AppComponent } from './app.component';
      declarations: [
      imports: [
      providers: [],
      bootstrap: [AppComponent]
    export class AppModule { }


    The order of import declarations is important.

  2. Replace the \src\app\app.component.html file content with the following code that uses the dx-report-designer Angular component:

      <dx-report-designer [reportUrl]="reportName" height="700px" >
          <dxrd-request-options [getDesignerModelAction]="getDesignerModelAction" [host]="host"></dxrd-request-options>
  3. Replace the \src\app\app.component.ts file content with the following code:

    import { Component, ViewEncapsulation } from '@angular/core';
    import 'devexpress-reporting/dx-richedit';
    selector: 'app-root',
    encapsulation: ViewEncapsulation.None,
    templateUrl: './app.component.html',
    styleUrls: [
    export class AppComponent {
    title = 'DXReportDesignerSample';
    // If you use the ASP.NET Core backend:
    getDesignerModelAction = "/DXXRD/GetDesignerModel"
    // If you use the ASP.NET MVC backend:
    //getDesignerModelAction = "/ReportDesigner/GetReportDesignerModel";
    // The report name.
    reportName = "TestReport";
    // The backend application URL.
    host = 'https://localhost:5001/';

Specify the Backend Host URL

Run the server (backend) application. Make sure that the reportName setting in the app.component.ts file matches the .repx file in the Reports folder of the backend application. Determine the backend application URL and change the host setting in the app.component.ts file, if necessary. Review the following help topic section for more information: Determine the Host URL.

Run the Application

Switch to the client root folder (angular-report-designer) and run the command to launch the server and rebuild the application:

ng serve

Open your browser at http://localhost:4200/ to see the result.

View Example: How to Integrate Web Report Designer in Angular App



For recent Angular versions (13 and later) you may have to compile the Angular project with the skipLibCheck option set to true, and increase the initial budget setting in the angular.json file up to 5mb to avoid compilation errors.

When you start the application, you may encounter the following problems:

Page is blank

The Report Designer page is blank. The following error message is displayed at the bottom of the page: The page is blank because the Report Designer failed to load the report. Consult the developer for assistance. Use development mode for detailed information. If the page does not display the Report Designer, press F12 to invoke DevTools and inspect the console messages.

Check the following:

  • The specified controller action path matches the back-end application type. If you use the ASP.NET Core backend, specify the /DXXRD/GetDesignerModel path, if you use the ASP.NET MVC backend, specify the /ReportDesigner/GetReportDesignerModel path.
  • The backend application is up and running.
  • The backend application runs on the port specified in the host setting of the Report Designer component in your Angular project. Review the following help topic for more information: Determine the Host URL.
  • The Angular application’s URI satisfies the CORS policy specified in your backend application. Review the following help topic for more information: Configure the Application.
  • The Angular component’s reportName value matches an existing report. For the backend application it means that the Reports folder contains the reportName.repx file or the ReportsFactory.Reports dictionary contains the reportName entry (if backend application originated from the DevExpress template).
  • The version of the DevExpress scripts (npm packages) should match the version of the server-side libraries (NuGet packages). You can enable Development Mode to check for library version mismatch on every request to the server. For more information, review the following help topic: Server-Side Libraries Version.

Review the following help topic for more information: Troubleshooting.