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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer selection

Status
Not open for further replies.

allserve

Programmer
Feb 14, 2002
9
NL
I create a procedure where I set a printer for special documents, but the print-output will not change to an other printer as my default printer. It founds the criteria, but nothing happens to my printer settings. What do I wrongly?

proc SetSpecialPrinter
lnprinters = Aprinters(laPrinters)
If lnprinters > 0
For lnCounter = 1 to lnPrinters
If ATC('4000', laPrinters(lnCounter,1)) > 0
** Set printer to Name laPrinters(lnCounter,1)
*** or
** Set Printer to Default laprinters(lnCount,1)
Exit
endif
EndFor
endif
 
The printer information is stored in the report, where even though you tell it to go to another printer, it takes the information from the report itself.
You want to look at FAQ184-581
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top