New to Telerik ReportingStart a free 30-day trial

Commands Overview

The Native Angular Report Viewer exposes the ability to trigger various commands via the executeCommand method which accepts the name of the command as the first parameter and the command value(optional).

Commands Usage Example

The following example illustrates a list of all the available commands in the viewer, and how they may be invoked:

HTML
<reporting-angular-viewer
	#viewer
	[contentTabIndex]="2001"
	[reportSource]="reportSource"
	[serviceUrl]="serviceUrl"
	viewMode="interactive"
	[keepClientAlive]="true">
</reporting-angular-viewer>

<div class="func-btn-wrapper">
	<button
		kendoButton
		class="func-btn"
		*ngFor="let button of buttons"
		(click)="execute(button.commandName, button.commandValue)"> 
	</button>
</div>

Commands List

Command nameCommand valueDescription
navigateBackwardnoneGoes back to the previously rendered report from history.
navigateForwardnoneGoes forward to the previously rendered report from history.
refreshReportnoneRefreshes the report.
stopRenderingnoneStops the current report rendering.
navigateToFirstPagenoneGoes to the first page of the report.
navigateToPrevPagenoneGoes to the previous page of the report.
navigateToNextPagenoneGoes to the next page of the report.
navigateToLastPagenoneGoes to the last page of the report.
setViewModenoneToggles between Print Preview and Interactive view modes.
setScaleModeAn object with scaleMode(and scale for'specific' scale mode is used)Changes the viewer's scaleMode
setReportSourceAn object with report and parameters propertiesChanges the report source and refreshes the viewer.
setAuthenticationTokenauthentication tokenA bearer token to be added in the Authorization token of each request
exportReportrendering extension nameExports the report, using the respective rendering extension name.
printReportnoneTriggers the report printing.
toggleDocumentMapnoneShows or hides the document map.
toggleParametersSectionnoneShows or hides the parameters area.
toggleSearchWindownoneShows or hides the search dialog.
toggleAiPromptWindownoneShows or hides the AI prompt dialog.
zoomInnoneZoom-in the report.
zoomOutnoneZoom-out the report.