Hello,
I have created an Angular project in which a report is displayed
in the Report Viewer, which is loaded by the Report Server.
As described in your example.
I use the option "[reportSource]" to pass the
following object:
"{Report: categoryName / reportName}".
Now I want to change this object to another report and show
this.
Unfortunately it did not work that easy.
So I researched the documentation and found out that methods
can be run on the viewer.
https://docs.telerik.com/reporting/angular-report-viewer-api-methods
refreshReport() and setReportSource() sounded good and I
tried them as they did in your example.
Unfortunately, that did not work either.
In the console came
the following errors :
My HTML:
01.<button (click)="viewer1.refreshReport()">Refresh</button>02.<button (click)="viewer1.setReportSource(rs)">setReportSource</button>03.<button (click)="temp = viewer1.getReportSource()">getReportSource</button>04. 05.<pre>{{temp|json}}</pre>06.<pre>{{reportSource|json}}</pre>07. 08.<tr-viewer #viewer1 *ngIf="reportSource"09. [containerStyle]="viewerContainerStyle"10. [reportServer]="creds"11. [viewMode]="'PRINT_PREVIEW'"12. [scaleMode]="'SPECIFIC'"13. [scale]="1.0"14. [reportSource] = "reportSource"15.></tr-viewer>
What am I doing wrong? How can I call another report in the viewer?

