Release 10.1A: OpenEdge Reporting:
Report Builder Deployment

> ## Prompting for user input for the printer information

> The `rbprint1.p` sample procedure runs the Accts Receivable report in the `rbsample.prl` report library and prompts the user for the printer destination and printer name using the Report Engine built-in prompting mechanism:

> rbprint1.p
>       DO TRANSACTION:

>     /* 1 */
>       CREATE RBREPORT.

>     /* 3 */
>       ASSIGN
>         RBREPORT.RB-REPORT-LIBRARY = "c:\dlc\src\aderb\rbsample.prl"
>         RBREPORT.RB-REPORT-NAME = "Accts Receivable"
>         RBREPORT.RB-PRINT-DESTINATION = "?"
>         RBREPORT.RB-PRINTER-NAME = "?"
>         RBREPORT.RB-DISPLAY-STATUS = yes
>         RBREPORT.RB-DISPLAY-ERRORS = yes.

>     /* 3 */
>       RELEASE RBREPORT.

>       END.

>     /* 4 */
>       RUN aderb\_prore.p(false,
>         "-db Runtable -S servername -H hostname -N networktype -rbdel").

> The commented numbers correspond to the following step-by-step descriptions:

> 1. Create the RBREPORT record.

> 2. Assign values to the record, but specify questions marks (?) for the printer destination and printer name fields. The question marks instruct Report Engine to prompt the user for input for those fields.

> 3. Explicitly release the RBREPORT record so that Report Engine can use it.

> 4. Call `_prore` to invoke Report Engine and run the report with the user prompts. As shown in the previous sample procedure, you use the Report Delete (`-rbdel`) parameter to delete the record from the Report Engine table when the procedure is done.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095