I've integrated the jsreport libary in Angular from it we are showing the report.
The report is displaying fine. But when I want to print the report then the report preview is showing the 2 pages actually there is a single page.
I used window.print() method in .ts file of Angular.
the .ts function
printReport() {
window.print();
}
HTML
<div mat-dialog-content>
<pdf-viewer [src]="data"
[page]="1"></pdf-viewer>
</div>
Here I am using mat-dialog to view the report.