List of Report Viewer Commands

Since version 2.10 of Silverlight Viewer for Reporting Services you can use Commands to call standard behavior of report viewer.

You can access commands through ReportViewer.Commands property and bind it toXAML Objects in the following way:

<Button x:Name="RenderDocumentButton" Content="Render Document"
Width
="100" Height="20" 
Command="{Binding ElementName=reportViewer,
  Path
=Commands.RenderDocumentCommand}">
</Button>

Below you can see full list of all commands supported by report viewer.


Report Commands


RenderDocumentCommand

Renders the document

ClearViewAreaCommand

Clears view area

RefreshDocumentCommand

Refresh current report

PrintCommand

Prints current report

Zoom Commands


DecreaseZoomCommand

Decreases a zoom value

IncreaseZoomCommand

Increases a zoom value

PageWidthZoomCommand

Sets zoom value to fit the page width

WholePageZoomCommand

Sets zoom value to fit the whole page size

PageZoom100Command

Sets zoom value equals to 100%

Page Mode Commands


SetContinuedPageModeCommand

Sets continued page mode view

SetSinglePageModeCommand

Sets single page mode view

Navigation Commands


GoToLastPageCommand

Navigates to the last page

GoToNextPageCommand

Navigates to the next page

GoToPreviousPageCommand

Navigates to the previous page

GoToFirstPageCommand

Navigates to the first page

HistoryForwardCommand

Navigates through the history in backward direction

HistoryBackwardCommand

Navigates through the history in forward direction

Tools Selection Commands


SetZoomToRegionToolCommand

Sets tool to the 'zoom to region' tool

SetDynamicZoomToolCommand

Sets tool to the 'dynamic zoom' tool

SetZoomInToolCommand

Sets tool to the 'zoom in' tool

SetZoomOutToolCommand

Sets tool to the 'zoom out' tool

SetPanToolCommand

Sets tool to the 'pan tool'

Export Commands


ExportToWordCommand

Exports to Word

ExportToPdfCommand

Exports to PDF

ExportToTiffCommand

Exports to TIFF

ExportToXMLCommand

Exports to XML

ExportToExcelCommand

Exports to Excel

ExportToHtmlCommand

Exports to HTML

ExportToCsvCommand

Exports to CSV

ExportToMhtmlCommand

Exports to MHTML

ExportToRtfCommand

Exports to RTF

ExportToXpsCommand

Exports to XPS

Search Commands


FindTextCommand

Searches text in the report

FindNextTextCommand

Searches text through the report in forward direction

FindPreviousTextCommand

Searches text through the report in backward direction


Add Feedback