USER parameter

Specifies user IDs for logging on to SQL or ODBC databases used by the report.

Method 1

User-<servername>.<databasename>

To pass a password to a subreport database, use the following syntax:

User-<servername>.<databasename>@<subreportname>

Method 2

This method of specifying a user ID was used in older versions of Crystal Reports (for example, Crystal Reports 7). While it is not recommended, it can still be used.

USER#=<userid>

<userid> is a string.

For example:

user0=SmithJ

If the report accesses more than one password-protected database, multiple user IDs can be passed by incrementing the USER index number. For example:

http://myServer/myVirtualDirectory/viewrpt.cwr?id=152&apstoken=A1B2&user0@Crosstab=jimmys&password0@Crosstab=jimmyz

USER# is normally used in conjunction with the PASSWORD# parameter. For example:

user0=SmithJ&password0=secret&user1=JohnS&password1=mystery

If the report contains subreports that require user IDs and passwords for logging on to SQL or ODBC data sources, use the following syntax in the URL:

user#@subname=<userid>&password#@subname=<password>

Subname is the name of the subreport.

For example:

user0@Crosstab=jimmys&password0@Crosstab=jimmyz

Note:    



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