Testing the Subreport Parameter
You are now ready to test the setting of the subreport parameter from the TextBox values.
From the Build menu, select Build Solution.
If you have any build errors, go ahead and fix them now.
From the Debug menu, click Start.
In the ListBox control, CTRL-click to select at least four different cities in the list.
In the startDate TextBox control, enter 1/1/1997.
In the endDateTextBox control, enter 8/31/1997.
Click the Redisplay Report button.
The page reloads and displays the customer records for customers who live in the list of cities that have just been selected, as well as a subreport that displays orders for the date range specified above.
- In the CrystalReportViewer control, increase the Zoom level to 125%.
The page reloads at 125% zoom. The values that are selected for both cities and order date range are persisted.
- Return to Visual Studio and click Stop to exit from debug mode.