PDOX 9
I am trying to get the code below to print more than one copy of the Garnish1 report, unfortunately it only prints 1 copy. There seems to be no syntax errors, what I my missing?
Thank you!
method pushButton(var eventInfo Event)
Var
R Report
Q Query
S String
poi PrinterOptionInfo
endvar
s=Customer_No
Q=Query
ANSWER: :WORK:GARNISH.DB
Customer.db | Customer No | Name | Signa |
| Check ~s | Check | Check |
EndQuery
if ADPC.value="afs"
then
printerSetOptions(poi)
poi.papersize = prnLetter
poi.orientation = prnPortrait
poi.copies = 2
r.print("Garnish1"
Endif
endmethod
I am trying to get the code below to print more than one copy of the Garnish1 report, unfortunately it only prints 1 copy. There seems to be no syntax errors, what I my missing?
Thank you!
method pushButton(var eventInfo Event)
Var
R Report
Q Query
S String
poi PrinterOptionInfo
endvar
s=Customer_No
Q=Query
ANSWER: :WORK:GARNISH.DB
Customer.db | Customer No | Name | Signa |
| Check ~s | Check | Check |
EndQuery
if ADPC.value="afs"
then
printerSetOptions(poi)
poi.papersize = prnLetter
poi.orientation = prnPortrait
poi.copies = 2
r.print("Garnish1"
Endif
endmethod