>My office have a printer which have tray1 and tray2.
>
>We put differrent paper in tray1 and tray2.
>
>How can I program vfp to print out the pdf file to tray1 or tray2?
One way is to create two separate printer definitions on your computer. Suppose your printer is an HP LaserJet XXXX.
Right now, your computer probably has just one HP LaserJet XXXX printer installed. Make sure its paper source is set to Tray 1. Then rename the printer to "HP LaserJet XXXX (Tray 1)".
Now, Add Printer. Add the exact same printer but set its paper source to Tray 2. Name it "HP LaserJet XXXX (Tray 2)".
From within VFP, you can now SET PRINTER TO the appropriate printer name and the job should come out where you want it to.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up