Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the default windows printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00244838
Message ID:
00244872
Vues:
23
>A few days ago I was trying to determine how to retrieve the default windows printer. I read a thread which stated how to MODIFY the default printer using the registry. I used this method to retrieve the default printer, but I later found the set("printer",2) returns the default printer. Is the set() function a reliable way to retrieve the windows default printer?
>
>Thanks!

Hi Tony,

The reason that this occurs is that after VFP startup you have to force it to re-read the registry settings. You do this by issuing a call to SYS(3056).

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform