Working with Parameters with Crystal Reports and ASP.NET 2.0 - Adding Multiple Value (Discrete and Range) parameters to Crystal Report
(Page 5 of 6 )
This is very similar to the previous report except that this accepts multiple values (both discrete and range parameters).
In a way similar to the previous reports, add a new report named "SampleParam3.rpt" with the same fields. Now we shall add a new parameter to the Crystal Report.
The following are the steps required to add multiple value (Discrete and Range) parameters:
In the "FieldExplorer," right click on "Parameter Fields" and click "Add."
In the "Create Parameter Field" dialog box, provide "Name" as "p_OrderDate_Discrete_Range," "Prompting Text" as "Enter Start and End Dates or single date," "Value Type" as "DateTime," switch "Allow multiple values" to on in the "Options," select "Discrete and Range Values" from the radio button list and click OK (Fig 11).

Using the "Select Expert," provide the information for the "Choose Field" dialog box as being from "Orders.OrderDate" and click on OK (as shown in figure 12).

Using the "Select Expert" provide information as follows (Fig 13) and click OK.

Next: Passing the value to Multiple Crystal Report Parameters dynamically: source code >>
More ASP.NET Articles
More By Jagadish Chaterjee