Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the Windows current/default printer?
Message
From
29/11/2001 20:30:43
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00587786
Message ID:
00587794
Views:
29
Ooops! I missed that (he shouldn't have put in in parenthesis *grin*)...

There is GetDefaultPrinter that works under NT/W2K, but I've never used it.

You can get the default printer using Word.application dialog, but that's iffy:
oWord = CREATEOBJECT("word.application")
oDialog = oWord.Dialogs(97)
? odialog.printer
>>Luis,
>>
>>Do you have to use API, or will VFP be okay? :)
>
>Quote: (without using any VFP function)
>I missed it first time I read the message to :)
>
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform