Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the Windows current/default printer?
Message
De
30/11/2001 12:55:08
 
 
À
30/11/2001 12:52:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00587786
Message ID:
00588131
Vues:
40
That's why I said it's iffy :)

You need it to work in VFP5 also? If so, I would follow George's advice in this matter...

>Thanks, but What if the user doesn't have Word installed?? ;-)
>
>Thanks any way,
>
>Luis
>
>
>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform