Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print setup through code, Print to particular tray
Message
 
À
30/05/2003 08:09:31
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00794445
Message ID:
00794892
Vues:
11
Jonathan
In addition to Sergey's suggestion, you could create two printers in your machine, with the same driver of course, and have one set up to print to tray 1 ( let's call the printer Tray1 ) and the other to tray 2 ( called Tray2 ). You could then, anywhere in your code, use something like
set printer to name "Tray1"
report form SomeReport to print noconsole
set printer to name "Tray2"
report form SomeOtherReport to print noconsole
I haven't tried this, but i am pretty sure it will work.

Cheers,
Jaime

>Hi All,
>
>Just had a weird reques from a client. He wants to know if it's possible to print some reports from tray 1 and others from tray 2. The reason being is obviously that his pre-printed invoices are on one tray and white paper on another and he wants to avoid buying 2 printers.
>
>Is it possible to force that via code? Without opening the PROMPT printer setup?
>
>If yes, would you be so kind to send me some sample code or refer me to somewhere I can look for it.
>
>Thanks in advance
>
>Jonathan
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform