|
Re: How to Print 'Original' on 1st Copy 'Duplicate' on 2/3/4th Copy [message #111306 is a reply to message #111218] |
Tue, 15 March 2005 09:19 |
Steve Corey
Messages: 336 Registered: February 2005 Location: RI
|
Senior Member |
|
|
I believe you can reference the system parameters the same way as user parameters. That is to say, if you created your own parameter called 'p_my_parameter', you can reference it in a format trigger as 'IF :p_my_parameter = Y THEN...'
If I am not mistaken you can reference your system parameter the same way. Create your boilerplate text in layout editor (eg you would have two boilerplates one that says "ORIGINAL" and overlap that with another text "DUPLICATE"
For the ORIGINAL:
Format trigger psuedocode: IF :COPIES = 1 THEN SHOW ELSE HIDE
For DUPLICATE:
Format trigger pseudocode: IF :COPIES > 1 THEN SHOW ELSE HIDE
However, I'm not sure that the copies parameter is the correct value to be evaluating for your requirements. It may be, but I have yet to use this system parameter in my reports.
HTH,
Steve
|
|
|
|
Re: How to Print 'Original' on 1st Copy 'Duplicate' on 2/3/4th Copy [message #111340 is a reply to message #111218] |
Tue, 15 March 2005 13:13 |
Steve Corey
Messages: 336 Registered: February 2005 Location: RI
|
Senior Member |
|
|
That is why I said that copies may not be the parameter to evaluate, but that is how you refer to it in a format trigger.
So if copies = 4 and the report is only 1 page (could it be more than one page in the future? - This is really the question to think about) then you would want to evaluate the current page number. If you are printing out 4 pages and every page is the same, then you can reference the current page number instead of copies and apply the same logic as I suggested before.
HTH,
Steve
|
|
|
|