Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the name of the default printer?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00235120
Message ID:
00239324
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform