Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing multiple copies of a report

Status
Not open for further replies.

reinaldo

Programmer
Mar 29, 2001
31
US
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
 
poi.papersize = prnLetter
poi.orientation = prnPortrait
poi.copies = 2
printerSetOptions(poi)

printerSetOptions should come after printOptionInfo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top