Creating Parameter
We can easily create the parameter in Crystal Report. For creating the Parameter follow these steps,
First go to Field Explorer -> Parameter Field -> New.
![1](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/1.jpg)
Now, we see the box on our Window screen. Here, set the,
First go to Field Explorer -> Parameter Field -> New.
![1](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/1.jpg)
Now, we see the box on our Window screen. Here, set the,
- Parameter name
- List of the values -> Dynamic option
- Prompt Group Text
- Data Source -> value, description, parameters
- Value options -> allow multiple value -> true
![2](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/2.jpg)
After completing all the process now, we see our parameter name in the Field Explorer.
![3](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/3.jpg)
If you want to show the working of the parameter in out report, first go to Design page of the report and drag the parameter name from the Field Explorer.
![4](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/4.jpg)
When we go to our preview page, we find this box in our Window. Here, we choose our fields which, we want to show in the report and click OK.
![5](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/5.jpg)
Now, on Preview page, see the modified output.
![6](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/6.jpg)
Delete Parameter
We can also delete the parameter, go to Field Explorer -> Right click on Parameter Name -> Delete.
![7](https://www.csharp.com/UploadFile/Tutorial/dbeniwal321/9/images/20161222040252/7.jpg)
Summary
Thus, we learnt the use of the parameter in Crystal Report.