Viewer tag

The viewer tag is the main tag that instantiates the CrystalReportViewer. It handles the creation of the viewer and allows you to set viewer properties through supported attributes.

Each instance of the viewer tag requires a report tag to specify the report to be displayed. If multiple instances of the viewer will be used on a single HTML page, each instance must be given a unique name, specified through the viewerName attribute.

Nested tags

Report tag

Attributes

Appearance

Attribute Description Required

enablePageToGrow

Sets whether the viewer takes up as much space as it needs to properly display the report.

No

height

Sets the viewer height in pixels.

No

width

Sets the viewer width in pixels.

No

left

Sets the left position of the viewer.

No

top

Sets the top position of the viewer.

No

displayGroupTree

Sets whether to display the Group Tree on viewer start up.

No

displayPage

Sets whether to display the report page.

No

displayToolbar

Sets whether to display the toolbar.

No

groupTreeWidth

Sets the width of the Group Tree in pixels.

No

groupTreeWdithUnit

Sets whether to use pixels or percentage to determine the group tree width.

No

zoomPercentage

Sets the zoom factor used when displaying the report.

No

styleSheet

Sets the stylesheet that used to display the report content.

No

Behavior

Attribute Description Required

printMode

Sets whether to print using PDF or ActiveX print mode when the user clicks the print button.

No

allowDatabaseLogonPrompting

Sets whether to allow users to be prompted for database logon information.

No

allowDrillDown

Sets whether to allow the user to drill down on the report.

No

allowParameterPrompting

Sets whether to allow the user to be prompted for parameter values.

No

hyperlinkTarget

Sets the window or frame where hyperlinked documents are displayed.

No

isOwnPage

Sets whether the viewer control owns the page.

No

Toolbar

Attribute Description Required

displayToolbarViewList

Sets whether to display the view list on the toolbar.

No

displayToolbarExportButton

Sets whether to display the export button on the toolbar.

No

displayToolbarFindPageButton

Sets whether to display the Go To Page button on the toolbar.

No

displayToolbarPageNavigationButtons

Sets whether to display the page navigation buttons on the toolbar.

No

displayToolbarPrintButton

Sets whether to display the print button on the toolbar.

No

displayToolbarRefreshButton

Sets whether to display the refresh button on the toolbar.

No

displayToolbarFindButton

Sets whether to display the search button on the toolbar.

No

displayToolbarToggleTreeButton

Sets whether to display the Group Tree toggle button on the toolbar.

No

displayToolbarZoomList

Sets whether to display a zoom factor drop down list on the toolbar.

No

displayToolbarCrystalLogo

Sets whether to display the Crystal Decisions logo on the toolbar.

No

Report Source

Attribute Description Required

reportSourceType

Specifies the type of report source the viewer will use.

Yes

reportSourceVar

Sets the name of the variable where the report source will be cached.

No

Identification

Attribute Description Required

viewerName

Sets the name of the viewer.

Yes



Crystal Decisions
http://www.crystaldecisions.com/
Support services
http://support.crystaldecisions.com/