This page, which is accessed through the ShowReport
function in showreportscripts.js, uses viewrpt.cwr to launch reports in a Crystal Report Viewer. It contains two main functions: GetViewer
and GetExportType
.
This function retrieves the INIT parameter value for the viewer that the user has specified on the User Settings page. The INIT parameter and the retrieved value is attached to the query string that loads the Report Viewer.
This function allows the user to view a report that has been exported to a different format type. This function selects theCMD# and EXPORT_FMT parameters that the user has specified in settings.csp. The retrieved export type is attached to the query string that loads the Report Viewer.
GetViewer an GetExportType work together to launch a Crystal Report Viewer. They construct a URL that may look like this:
http://myAPS/myDesktop/viewrpt.cwr
For more information on viewrpt.cwr and the parameters that are associated with the Crystal Report Viewers, see Crystal Web Request (CWR) and Report Viewer parameters.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |