Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Specify printer tray or bin to print report to programma
Message
De
10/07/2003 12:21:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00808875
Message ID:
00808896
Vues:
31
Thanks Yuri. I was hoping for an api idea so the solution would work for both @...say reports as well as .frx reports (after the expr field is emptied which is done before the reports are compiled into the app)...

>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!
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform