Integrating the Native Angular Report Viewer with the Reporting Service
This tutorial demonstrates how to add the native Angular Report Viewer component to a new Angular application.
Prerequisites
The following list describes the prerequisites for completing the tutorial:
- Review the Native Angular Report Viewer Requirements.
- Angular CLI Project.
- A running application that hosts a Reporting REST service at address
/api/reports
. For more information, see Telerik Reporting REST Services.
Steps:
- Create a new Angular application using the Angular CLI.
-
Install the Native Angular Report Viewer NPM package with the following command:
If you receive a 403 Forbidden Error, you need to register and log in at npmjs.com before performing this step.
-
Once installed, import the
ReportingAngularViewerModule
in your application root module: -
Use the report viewer selector -
reporting-angular-viewer
in the component's template: -
Install the Angular
localize
package - Add the localize package. This is required for the report viewer's localization functionality -
Install one of the Kendo UI for Angular themes, e.g. the Default Theme
-
Reference the theme in the project using one of the supported approaches - Compiling Themes from SCSS Source Files. In this example, we will use the approach with the
angular.json
configuration which consists of adding the desired theme inside thestyles
array - Angular workspace configuration: Styles and scripts configuration: -
Run the application
start
script: