Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the name of the default printer?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00235120
Message ID:
00239324
Vues:
18
George,
I have another question. Set('PRINTER',2) works perfectly well. But I have a code that check if the default printer is equal to "default printer name" then I'll do something. But if the user changed the printer name in the Windows95 Printer properties..., I got a problem :(.

How can I get the default printer name or ID no directly from the printer and not from Windows 95. This is because the printer name in the Windows 95 can be modified.

Thanks,

Charlotte


>Thanks a lot, George!
>
>>>How can I get programatically the default printer? I don't want to use the getprinter() function. Pls. help.
>>>
>>Hi Charlotte,
>>
>>SET('PRINTER', 2) returns the name of the default printer.
Charlotte M. Nulud
Analyst / Programmer
Banco Filipino Savings & Mortgage Bank
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform