New to Telerik Reporting? Download free 30-day trial

Customize Report Viewer in Angular by Loading Its Resources Locally


Product Version
Product Progress® Telerik® Reporting
Project Type Angular application


I want to customize the Angular Wrapper Report Viewer's default layout and behavior by loading a custom template, stylesheet, or JS resource.


Angular requires a folder called assets to be used for serving custom files, so they could be included in the production build. This is done via the assets property in the .angular-cli.json file (or .angular.json for Angular 6+ applications).

"assets": [

Depending on the Angular version, it may be necessary to add the full path for each asset in the assets array rather than the whole folder, for example, src/assets/telerikReportViewerTemplate.html

Check out the documentation for this feature here to learn how to use it: Angular workspace configuration.

Important notes

Keep in mind that this will require merging the new changes for each of the local files manually on upgrade.


The following three scenarios could be applied together (if all resources have to be modified). However, if you intend to modify just one resource, for example, the script file, check only the corresponding section.

Scenario 1

How to load the viewer's JS resource (telerikReportViewer- locally?


I would like to change the behavior of the report viewer widget (toolbar, parameters area, document map)

How to

  1. Copy the script file from C:\Program Files (x86)\Progress\Telerik Reporting 2024 Q2\Html5\ReportViewer\js\telerikReportViewer- to assets folder
  2. In index.html load the jQuery library (required for the JS logic) and the local file itself:

    <script src=""></script>
    <script src="assets/telerikReportViewer-"></script>

Scenario 2

How to load the viewer's HTML template (telerikReportViewerTemplate- locally?


I would like to change the layout of the report viewer widget (hide toolbar buttons, add additional buttons, localize string resources, etc.)

How to

  1. Copy the template file from C:\Program Files (x86)\Progress\Telerik Reporting 2024 Q2\Html5\ReportViewer\templates\telerikReportViewerTemplate- to assets folder
  2. Load it setting templateUrl option of the report viewer like:

    <tr-viewer #viewer1 
            report: 'SampleReport.trdp',
            parameters: {}

Scenario 3

How to load the viewer's styles (telerikReportViewer- locally?


I would like to change the default styling of the viewer widget.

How to

  1. Important: This depends on the template, so make sure that local telerikReportViewerTemplate- is used (check Scenario 2).
  2. Copy the stylesheet file from C:\Program Files (x86)\Progress\Telerik Reporting 2024 Q2\Html5\ReportViewer\styles\telerikReportViewer- to assets folder
  3. Open telerikReportViewerTemplate- file and change the path to the stylesheet resource from:

    <link href="{service}resources/styles/telerikReportViewer-" rel="stylesheet" />
    <link href="assets/telerikReportViewer-" rel="stylesheet" />

See Also

In this article