Adding the push buttons
To generate the report information, preview the report, and print the report from your user interface, you need to add push buttons and connect them to the report viewer and report part.
1. Add three push button parts to BusinessExpenseView just above the report viewer part. Label them Run Report, Preview Report, and Print Report.
2. To generate the report information and display it in the window, connect the Run Report button's clicked event to the refresh action of the Report Viewer.
3. To preview the report, make the following connections:
a. The Preview Report button's clicked event to the report part's previewWithOwner action
b. The window's self attribute to the ownerView attribute of the previous connection
4. To print the report, connect the Print Report button's clicked event to the report part's print action.
Last modified date: 01/29/2015