New to Telerik ReportingStart a free 30-day trial

Properties Overview

The report viewer exposes various commands via the commands property.

Commands

Each command is an object with the exec() method being the one that triggers the command.

The other two methods, enabled() and checked() return a boolean value and can be used before executing a command or to find in what state the UI for the command should be.

HTML
<tr-viewer #viewer1 />
<button (click)="viewer1.commands.print.exec()">Print</button>

The example above creates a Print button and in the click event handler invokes report viewer print command.

The exec() method of the command needs to be called. For more information, please check the command article.

The following table is a list of all commands:

Command nameParametersDescription
historyBacknoneGoes back to the previously rendered report from history.
historyForwardnoneGoes forward to the previously rendered report from history.
stopRenderingnoneStop the rendering of the current report at the first possible moment.
refreshnoneRefreshes the report.
goToFirstPagenoneGoes to the first page of the report.
goToPrevPagenoneGoes to the previous page of the report.
goToPagepage numberGoes to a specific page of the report.
goToNextPagenoneGoes to the next page of the report.
goToLastPagenoneGoes to the last page of the report.
togglePrintPreviewnoneToggles between Print Preview and Interactive view modes.
exportrendering extension nameExports the report, using the respective rendering extension name.
printnoneTriggers the report printing.
toggleDocumentMapnoneShows or hides the document map.
toggleParametersAreanoneShows or hides the parameters area.
zoomInnoneZoom-in the report.
zoomOutnoneZoom-out the report.
zoomzoom ratioZoom with a specified ratio.
toggleZoomModenoneChanges the zoom mode of the report.
toggleSideMenunoneShows or hides the side menu.
toggleSearchDialognoneShows or hides the search dialog.
toggleSendEmailDialognoneShows or hides the Send Email dialog.
toggleAiPromptDialognoneShows or hides the AI Prompt dialog.
In this article
Commands
Not finding the help you need?
Contact Support