Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the default windows printer
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00244838
Message ID:
00244872
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform