Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
@ViewChild to obtain the StimulsoftViewerComponent instance:import { Component, ViewChild } from '@angular/core';
import { StimulsoftViewerComponent } from 'stimulsoft-viewer-angular';
export class AppComponent {
@ViewChild('viewer') viewer: StimulsoftViewerComponent;
}viewer.api object exposes the viewer's state and methods, which you can bind to directly:Zoom is {{ viewer.api.zoom }}<br />
Current page {{ viewer.api.currentPage + 1 }}<br />
<input type="button" (click)="viewer.api.zoom = 50" value="Zoom to 50%" />
<input type="button" (click)="viewer.api.export('Pdf', { ImageResolution: 200 })" value="Export to PDF" />
<stimulsoft-viewer-angular #viewer
[requestUrl]="'/Viewer/{action}'" [action]="'InitViewer'" [height]="'100vh'">
</stimulsoft-viewer-angular>viewer.api.zoom — reads or sets the zoom level in percent; assigning 50 zooms the report to 50%.viewer.api.currentPage — the zero-based index of the current page (shown as + 1 for a human-friendly number).viewer.api.export('Pdf', { ImageResolution: 200 }) — exports the report to a format with export settings; here PDF at 200 DPI.