Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Writer Question
Message
From
06/09/1999 19:13:30
 
 
To
06/09/1999 16:52:32
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00261790
Message ID:
00261812
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform