Skip to content

Commit 0d8376e

Browse files
chore: try again
1 parent a3359aa commit 0d8376e

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

knowledge-base/display-web-report-designer-in-angular-application.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,38 +46,39 @@ Follow these steps to integrate the Telerik Web Report Designer in your Angular
4646
1. Add references to all required [Telerik Web Report Designer resources]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/overview%}#prerequisites) in your main HTML page (`index.html`). Replace `https://localhost:5000` with your actual ASP.NET application URL:
4747

4848
````HTML
49-
<head>
49+
<head>
5050
<!-- jQuery -->
51-
<script src="https://code.jquery.com/jquery-{{jqueryversion}}.min.js"></script>
51+
<script src="https://code.jquery.com/jquery-{{site.jqueryversion}}.min.js"></script>
5252
<!-- Kendo UI for jQuery -->
53-
<script src="https://localhost:5000/js/webReportDesigner.kendo-{{buildversion}}.min.js"></script>
53+
<script src="https://localhost:5000/js/webReportDesigner.kendo-{{site.buildversion}}.min.js"></script>
5454
<!-- Telerik Reporting resources -->
5555
<script src="https://localhost:5000/api/reports/resources/js/telerikReportViewer"></script>
5656
<script src="https://localhost:5000/api/reportdesigner/designerresources/js/webReportDesigner"></script>
5757
</head>
58-
````
59-
58+
````
6059
6160
> The `webReportDesigner.kendo-{{site.buildversion}}.min.js` file is not served automatically by the Report Designer REST service. You need to copy this file from your Telerik Reporting installation directory (`C:\Program Files (x86)\Progress\Telerik Reporting {{site.suiteversion}}\Html5\ReportDesigner\js\`) to your ASP.NET Core application's `wwwroot/js/` folder and reference it as shown above. This approach uses the Kendo UI subset included with your Telerik Reporting license instead of requiring a separate Kendo UI license.
6261
6362
1. Generate a new Angular component for the report designer:
6463
6564
````bash
66-
$ ng generate component report-designer
67-
````
65+
$ ng generate component report-designer
66+
````
6867

6968

7069
1. In your `report-designer.component.html`, add a container element for the designer:
7170

7271
````HTML
73-
<div id="webReportDesigner"></div>
74-
````
72+
<div id="webReportDesigner"></div>
73+
````
7574
7675
7776
1. In your `report-designer.component.js(ts)`, declare jQuery and initialize the designer:
7877
78+
* JavaScript
79+
7980
````JavaScript
80-
import { Component, OnInit } from '@angular/core';
81+
import { Component, OnInit } from '@angular/core';
8182
8283
@Component({
8384
selector: 'app-report-designer',
@@ -94,9 +95,13 @@ Follow these steps to integrate the Telerik Web Report Designer in your Angular
9495
}).data("telerik_WebDesigner");
9596
}
9697
}
97-
````
98+
````
99+
100+
101+
* TypeScript
102+
98103
````TypeScript
99-
import { Component, OnInit } from '@angular/core';
104+
import { Component, OnInit } from '@angular/core';
100105

101106
declare var $: any;
102107

@@ -115,7 +120,7 @@ Follow these steps to integrate the Telerik Web Report Designer in your Angular
115120
}).data("telerik_WebDesigner");
116121
}
117122
}
118-
````
123+
````
119124
120125
121126
## Additional Resources

0 commit comments

Comments
 (0)