This section explains the steps required to add Web Report Designer version higher than v5.2.xx to an Angular application.
This guide applies to angular version
17.xand above. If you are using an earlier version, please refer to the Getting Started for Earlier Version.
In Angular version
20.xand above, certain filenames have been updated. For example, the file previously namedapp.component.tsis now renamed toapp.ts.
Before getting started with Bold Report Designer, make sure your development environment includes the following,
version 20.x or 22.x and above) Version Compatibilityv10.x.x or higher)Angular provides the easiest way to set Angular CLI projects using Angular CLI tool. To install the CLI application globally to your machine, run the following command in Command Prompt.
npm install -g @angular/cli@latestTo learn more about
angular-clicommands refer here
To create a new Angular application run the below command in Command Prompt.
ng new project-name
E.g : ng new reportdesignerappThe
ng newcommand prompts you for information about features to include in the initial app project. Add theAngular Routingto your angular application by enteringyin the prompt window then press Enter key. Now, choose theCSSstylesheet format using the arrow keys and then press Enter key. The Angular CLI installs the required Angular npm packages and other dependencies.
Bold Reporting packages are distributed in npm as @boldreports/angular-reporting-components.
To configure the web Report Designer component, change the directory to your application’s root folder.
cd project-name
E.g : cd reportdesignerappRun the following commands to install the Bold Reports® Angular library.
npm install @boldreports/angular-reporting-components --saveInstall the typings dependencies jquery, types/jquery and boldreports/types.
npm install --save-dev jquery
npm install --save-dev @types/jquery
npm install --save-dev @boldreports/typesRefer the jQuery script file (jquery.js) as given in the angular.json file within the projectname > scripts section (For example, reportdesignerapp > scripts).
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"projects": {
"reportdesignerapp": {
"root": "src",
"outDir": "dist",
. . .
. . .
"styles": [
"src/styles.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.js"
],
. . .
. . .
}
}
}Add the typings jquery, and reports.all to the tsconfig.app.json file.
{
...
...
"compilerOptions": {
...
...
"baseUrl": "",
"types": [
"jquery",
"reports.all"
]
},
...
...
}Register the @bold-reports/types under the typeRoots node in the tsconfig.json file.

Open the angular.json file from your application’s root directory.
Refer the web Report Designer component style scripts bold.report-designer.min.css under the styles node of projects section as in the below code example.
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"projects": {
"reportdesignerapp": {
"root": "src",
"outDir": "dist",
. . .
. . .
"styles": [
"src/styles.css",
"./node_modules/@boldreports/javascript-reporting-controls/Content/v2.0/tailwind-light/bold.report-designer.min.css"
],
"scripts": [],
. . .
. . .
}
}
}In the above code snippet the
tailwind-lighttheme is used. You can modify the theme based on your application, refer the following syntax:./node_modules/@boldreports/javascript-reporting-controls/Content/v2.0/[theme-name]/bold.report-designer.min.css.
Report Designer requires the code mirror scripts and styles to edit the SQL queries and Visual Basic code functions with syntax highlighter.
Run the below command, to install the code mirror dependencies.
npm install codemirror@5.45.0Open the angular.json file from your application’s root directory and Refer the code mirror script and styles under the scripts and styles node of projects section as in the below code example.
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"projects": {
"reportdesignerapp": {
"root": "src",
"outDir": "dist",
. . .
. . .
"styles": [
"src/styles.css",
"./node_modules/@boldreports/javascript-reporting-controls/Content/v2.0/tailwind-light/bold.report-designer.min.css",
"./node_modules/codemirror/lib/codemirror.css",
"./node_modules/codemirror/addon/hint/show-hint.css"
],
"scripts": [
"./node_modules/codemirror/lib/codemirror.js",
"./node_modules/codemirror/addon/hint/show-hint.js",
"./node_modules/codemirror/addon/hint/sql-hint.js",
"./node_modules/codemirror/mode/sql/sql.js",
"./node_modules/codemirror/mode/vb/vb.js",
"./node_modules/jquery/dist/jquery.js"
],
. . .
. . .
}
}
}To add the web Report Designer component refer the following steps:
Open the app.ts or app.component.ts file.
You can replace the following code snippet in the app.ts or app.component.ts file.
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BoldReportDesignerModule } from '@boldreports/angular-reporting-components';
//Report Designer component dependent scripts
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/common/bold.reports.common.min';
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/common/bold.reports.widgets.min';
//Report Viewer and Designer component scripts
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/bold.report-viewer.min';
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/bold.report-designer.min';
@Component({
selector: 'app-root',
imports: [CommonModule, BoldReportDesignerModule],
templateUrl: './app.html', // or app.component.html
styleUrls: ['./app.css'] // or app.component.css
})
export class AppComponent {
public serviceUrl: string;
constructor() {
// Initialize the Report designer properties here.
}
}Open the app.html or app.component.html file and initialize the web Report Designer.
You can replace the following code snippet in the app.html or app.component.html file.
<bold-reportdesigner id="designer" style="position: absolute;height: 550px; width: 1250px;">
</bold-reportdesigner>The web Report Designer requires a Web API service to process the data and file actions. You can skip this step and use our online Web API services to create, edit, and browse reports or you must create any one of the following Web API service.
To set Web API service, open the app.ts or app.component.ts file and add the code snippet as in the constructor.
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BoldReportDesignerModule } from '@boldreports/angular-reporting-components';
//Report Designer component dependent scripts
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/common/bold.reports.common.min';
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/common/bold.reports.widgets.min';
//Report Viewer and Designer component scripts
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/bold.report-viewer.min';
import '@boldreports/javascript-reporting-controls/Scripts/v2.0/bold.report-designer.min';
@Component({
selector: 'app-root',
imports: [CommonModule, BoldReportDesignerModule],
templateUrl: './app.html', // or app.component.html
styleUrls: ['./app.css'] // or app.component.css
})
export class AppComponent {
public serviceUrl: string;
constructor() {
this.serviceUrl = "https://demos.boldreports.com/services/api/ReportingAPI";
}
}Open the app.html or app.component.html to set ServiceUrl property of web Report Designer as in the following code snippet.
<bold-reportdesigner id="designer" [serviceUrl] = "serviceUrl" style="position: absolute;height: 550px; width: 1250px;">
</bold-reportdesigner>Go to the workspace folder (reportdesignerapp).
Launch the server by using the CLI command ng serve, with the —open option.
ng serve --openThe ng serve command launches the server and the --open option automatically opens your browser to http://localhost:4200/

Note: You can refer to our feature tour page for the Angular Report Designer to see its innovative features. Additionally, you can view our Angular Report Designer examples which demonstrate the rendering of SSRS RDLC and RDL reports.