Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get/Set Default Printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00095055
Message ID:
00095058
Vues:
21
>Is there any way of obtaining the windows default printer name and also setting the default printer without using GetProfileString() - I would prefer to avoid INI files. I have obtained the printer details via APRINTER() but just need to be able to set default, do my printing, then set back again. Any ideas?

--- IT'S HAPPENED AGAIN - I FOUND IT STRAIGHT AWAY ---

cDefaultPrinter=SET("PRINTER",2) -returns the current printer name.
SET PRINTER TO NAME cDefaultPrinter -reverts back after my changes.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform