This tutorial shows you the basic steps required to programmatically set parameter fields for a report that is displayed using the viewer. Setting the parameter fields for a report allows a report that contains parameter prompts to always be displayed using the same values. Also, setting parameter fields can be used to change the default values or modify the values as needed. The report used in this example is created in the Crystal Reports Designer and has two parameter fields: Region and Country Code. The default values of the parameter fields and the new values that the code sets them to are as follows:
Note: This report is not included with the tutorial, but a simple report containing similar parameter fields and information can be easily created in the Crystal Reports Designer.
It is assumed that you have already created a report source. If you haven't, see Creating a report source object for details.
The tutorial contains the following sections:
| Crystal Decisions http://www.crystaldecisions.com/ Support services http://support.crystaldecisions.com/ |