Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working out the current default printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01300801
Message ID:
01301000
Vues:
14
I know there's an API call through the WSH that will give you the installed printer names but I don't remember if it will tell you which one is currently set as default.

And the command "Set Printer to Name [printername]" should work, although it's been awhile since I last used it.

>>Hi
>>
>>What's the easiest way to work out the name of the default printer?
>
>The problem in all of this is determining which printer a user printed to. I'd like to just use the PROMPT keyword in a REPORT FORM command and let the user choose any printer they want to. Then I'd like to be able to find out which one they chose and set that as the VFP default printer, but there's no way to do that in VFP and I'm not even sure of an API call to do it. So you have to do something like make them choose the printer first, then print to it, which is a little alien to the normal way that users are used to doing it. Indicate they want to print something, then choose the printer.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform