Share via


Testing the Subreport Parameter

You are now ready to test the setting of the subreport parameter from the TextBox values.

  1. From the Build menu, select Build Solution.

  2. If you have any build errors, go ahead and fix them now.

  3. From the Debug menu, click Start.

  4. In the ListBox control, CTRL-click to select at least four different cities in the list.

  5. In the startDate TextBox control, enter 1/1/1997.

  6. In the endDateTextBox control, enter 8/31/1997.

  7. 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.
  1. 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.
  1. Return to Visual Studio and click Stop to exit from debug mode.