Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP3 Setting default printer / redirecting print jobs
Message
De
10/05/1998 08:06:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00098361
Message ID:
00098362
Vues:
33
>Is there an easy way to set the default printer from inside VFP? Or at least for one print run, changing where the output will go?
>
>I have tried using
>
>set printer to name (printername)
>
>and then printing my report. However the print job does not always go to the printer selected.
>
>To me, the strange part is it works on some machines but not all.
>
>This is the scenario:
>
>I have a maintenance tracking application that allows anyone to print a work order. The ideal place for this work order to print at, would be the printer in th maintenance shop. (There is a bar code on it, describing the work order and the machine it pertains to. The maintenance person, scans his id, and then this bar code.)
>
>i.e.
>User creates work order
>User selects print
>VFP changes printer to maintenance printer
>VFP Prints work order
>VFP changes printer back to original printer.
>Maintenance person get work order, does work.
>
>I realy don't want to pop up the printer control and ask the user's to change the printer, after all they might forget to change it back. Then there Excel sheets would appear in the maintenance department and needless to say this would not work.
>
>Network is a NT/Novell Hybrid, with the application running in the NT environment. All users are W95 machines.
>
>it would be great to do it in code.
>
>Any out there, have any ideas?
>
>Thanks in advance,
>
>Mike

Mike,
SET("Printers",2) gives you the default printer. At least that's one part of your query.

HTH,
William Chadbourne
Senior Programmer/Analyst
State of Maine - DAFS App Team

Oracle - When you care enough to use the very best!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform