Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Specify printer tray or bin to print report to programma
Message
 
À
10/07/2003 11:22:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00808875
Message ID:
00808892
Vues:
26
Tracy,

See if message #719525 gives solution for you.

Also you may use the VFP system menu and keyboard command, but the key combination is specific for particular printer. For instance, having HP LaserJet 2000 I use this to set Tray1 :

keyboard("{ALT-F}u{TAB}{TAB}{TAB}{DNARROW}{DNARROW}{ENTER}")



>Is it possible to use win32 api or another function to specify which printer tray or bin to print a report to other than by opening the report as a table and changing DEFAULTSOURCE=nnn in the EXPR field of the first record? I would like to do it programmatically without even popping up a box or window to the user before printing. I would like to determine how many bins a printer has and allow the user to enter which bin to use in a table that has other print settings in our app (1 record exists for each form we print) and then set the bin # of the printer to that value before printing and set it back afterwards with no user intervention other than the user initially entering a value in that table to always be used in the future for that form. This is how we do all other printer settings for each form and it works well, but I do not know how to determine the number of bins a printer has and how to set which bin to use programmatically.
>
>I would like to do this for .frx reports as well as for older @...say reports that still are in use in our VFP7/8 app also and since there is no .frx that is printing changing that value is not an option.
>
>TIA!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform