I have coded this exact requirement.
First off, if coded generically - allows the user to add other reports to the list of reports accessible to the user - then this is a project, not a task - its a complex piece of code.
If this is simply for a specific set of reports, it's much easier.
For the simple case, create two tabpages.
1. Tabpage 1: You need to create an INPUT page for the users. This is where they will enter the parameters.
- create a datawindow that accepts the user input. These values will be the parameters for the report.
- you can SAVE these values into a database, and auto-populate the fields the next time this user returns to this INPUT screen for this report, if you wish.
2. When the user clicks on Tabpage 2, they go to the REPORT page, and the report is processed and displayed to the user.
- The values in the dw of tabpg 1 are used to populate the fields of the report DW in tabpg 2.
- Retrieve the data, and put the DW into Print Preview mode so the report will display in the manner in which it will print.
- Options on this page should include the ability to SAVE AS or PRINT.
Good Luck,
Olan