Loading a Report Viewer

The report viewer takes two parameters:

Note:    If a LogonToken is not available, you must provide the user's logon information using the appropriate Web Component Commands. See Report Viewer parameters.

Assuming that you have the ID of the report and a LogonToken, the call to load the viewer is a single line. The following is a link entitled "View Report" that will load a particular report to view:

"<a target='_blank' href='viewrpt.cwr?id=" +

    CurrentReportID + " & apstoken=" + Server.URLEncode(LogonToken) +"'> View Report</A>"

The two parameters given here are apstoken and id.

Note:    If you are creating a hyperlink to view a report, and passing the APS token, you should use a URLEncode function to make sure that the token does not contain any illegal characters.

Go to next step:

Adding an initialization string



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