Consultor Eletrônico



Kbase 21069: Report Builder: Only 1 Copy is printed when RB-NUMBER-COPIES = 2
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/01/2010
Status: Verified

SYMPTOM(s):

Only 1 Copy is printed when RB-NUMBER-COPIES = 2

Report Engine always prints one copy of a report

RB-NUMBER-COPIES is set to 2 or more

FACT(s) (Environment):

Report Builder
Problem does not affect all printers
Progress 9.x
Windows

CAUSE:

Bug# OE00065927

FIX:

Option #1
Set Number of copies > 1 in the Windows Printer set-up dialog.

Option #2
Encapsulate the code that calls the Report Engine within a DO loop and iterate a number of times equal to the number of copies required.
For example:

DEFINE VARIABLE i AS INTEGER.
DEFINE VARIABLE numCopies AS INTEGER.
UPDATE numCopies.

DO i = 1 TO numCopies:
RUN aderb\_prntrb2(
...
).
END.