Command line parameters
You can use command line configuration options to bypass ViewerFX for Crystal Reports default behavior and open a specific report. This page describes the commonly used options and how to use them.
How to Use Command Options
Section titled “How to Use Command Options”On Windows, right-click the ViewerFX for Crystal Reports shortcut icon and choose Properties. In the Target input box of the Shortcut tab, put the command option after the quote, for example c:\program files\origin software\viewerfx\viewerfx.exe c:\my reports\reportname.rpt userid=sa password=test. All command line parameters are optional.
Available Command Options
Section titled “Available Command Options”| Option | Result | Example |
|---|---|---|
| ServerName | The name of the server or ODBC data source where the database is located. | ServerName=127.0.0.1 |
| DatabaseName | The name of the database. | DatabaseName=MyDB |
| UserID | A user name for logging on to the data source. | UserID=sa |
| Password | The password for logging on to the data source. | Password=test |
| Trusted | Determines whether the database connection will use integrated security. | Trusted=True |
| CrystalPrompt | Sets a flag to display the Crystal Reports prompting dialog instead of ViewerFX for Crystal Reports prompting dialog. This is primarily used for reports that have dynamic cascading parameters. | CrystalPrompt=1 |
| SuppressLogo | Sets a flag to suppress ViewerFX for Crystal Reports startup logo. | SuppressLogo=1 |
| ViewStyle | Changes the navigation style of ViewerFX for Crystal Reports interface. There are two available options: Ribbon and Classic. Ribbon is the default style. | ViewStyle=Classic |
| @ParameterName | Passes in named parameters to the report that is being opened. Replace "ParameterName" with the actual name of the parameter(s) in the report. Note: Some parameters start with the @ symbol. If this is the case then your syntax would look like this: @@StartDate=1/1/2009. | @StartDate=1/1/2009 @EndDate=12/31/2009 |