>Hello everybody-
>
>I have a report that prints 2 copies of an invoice. How can I best have the report writer print a label saying "Duplicate" on only the second copy?
>
>TIA,
>Scott
FOR counter = 1 to 2
REPORT FORM myinvoice NOCONSOLE TO PRINTER
ENDFOR
This will print the report twice without user intervention.
1)On the REPORT you have a field in the header and in the "Expression" field you type
IIF(counter = 1,"Original","Duplicate")
Or
2)Just type in "Duplicate" in the "Expression" field and click the "PrintWhen" button. In the "Print only when expr is true" field type counter = 2
So now you can (1) Have Original/Duplicate
or (2) Only duplicate on the second copy.
Bernard