Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set any printer as the current Windows printer?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00187351
Message ID:
00187363
Vues:
16
>>I would like to know how I can set any installed Windows Printer as the current printer for VFP and for Windows, I used Getprinter but did not work. Is very important, I am finishing an application and this one is the last thing to terminate it. Tia
>>
>>Luis Guerra
>
>Luis,
>
>Take the value returned from GetPrinter and use the SET PRINTER TO command, for example;
>
>LOCAL lcPrinter
>lcPrinter = GetPrinter()
>IF NOT EMPTY( lcPrinter )
> SET PRINTER TO "&lcPrinter"
>ELSE
> * The suer pressed escape in GetPrinter
>ENDIF

I didn't know that SET PRINTER would change printer assignments outside the scope of the current VFP session.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform