Consultor Eletrônico



Kbase P29766: How to choose what printer to send a report to using the Pri
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/02/2004
Status: Unverified

GOAL:

How to choose what printer to send a report to using the PrintRB interface.

FIX:

To allow end users to send reports to the printer of their choosing, use the
SYSTEM-DIALOG PRINTER-SETUP statements and specify SESSION:PRINTER-NAME for the RB-PRINTER-NAME parameter.

Example Code Snippet:

SYSTEM-DIALOG PRINTER-SETUP.

RUN aderb\_printrb(
"Test.prl", /* RB-REPORT-LIBRARY */
"Test", /* RB-REPORT-NAME */
"", /* RB-DB-CONNECTION */
"", /* RB-INCLUDE-RECORDS */
"", /* RB-FILTER */
"", /* RB-MEMO-FILE */
"?", /* RB-PRINT-DESTINATION */
SESSION:PRINTER-NAME, /* RB-PRINTER-NAME */
"", /* RB-PRINTER-PORT */
"", /* RB-OUTPUT-FILE */
0, /* RB-NUMBER-COPIES - zero */ 0, /* RB-BEGIN-PAGE - zero */
0, /* RB-END-PAGE - zero */
no, /* RB-TEST-PATTERN */
"", /* RB-WINDOW-TITLE */
yes, /* RB-DISPLAY-ERRORS */
yes, /* RB-DISPLAY-STATUS */
no, /* RB-NO-WAIT */
""). /* RB-OTHER-PARAMETERS */