fmchong
14th December 2009, 05:01
Dear All,
I created a delivery order report and i would like to print 2 copies of the same delivery order with 1 customer copy and 1 account copy. "customer copy" and "seller copy" word appear at the bottom of the report seperately.

Please refer to attachement for more details

Please help!!

Thank you very much.

giggig
14th December 2009, 16:04
you can use the variable spool.pr.copies before printing.
in addition with a boolean, you can select what you want printing.

regards
GiG

fmchong
15th December 2009, 04:08
Hi GiG
Thank you for reply..i not really understand the usage of the variable.The variable put in report script?
Can i have the sample script?

Thank you.

bdittmar
15th December 2009, 10:12
Hi GiG
Thank you for reply..i not really understand the usage of the variable.The variable put in report script?
Can i have the sample script?

Thank you.

Hello,

long spool.pr.copies Number of copies

if variable = 0 then footer.1
if variable = 1 then footer.2
if variable = 2 then footer.3

That's all !

Regards

fmchong
21st December 2009, 11:26
Hi
i been tried on it but still cannot solve my problem. please help.

Thank you.

mark_h
21st December 2009, 15:05
I know on unix printing what they are suggestion would not work since the number of copies are sent via parameters to the printers. What I did for something like this was to use the session script - I printed the report twice.


num.dups = spool.pr.copies
spool.pr.copies = 1
for i = 1 to num.dups
if i = 1 then
rep.footer = "Original"
else
rep.footer = "Duplicate"
endif
print_the_report()
endfor

What I did to make it easy - was open report, set footer, print report, close report. Then do the same thing for additional copies where the footer changed. It was a little more complicated than this, but the theory works. I can only assume windows printing works the same way.