Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get/Set Default Printer
Message
 
To
27/04/1998 05:59:35
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00095055
Message ID:
00095062
Views:
26
>>Is there any way of obtaining the windows default printer name and also setting the default printer without using GetProfileString() - I would prefer to avoid INI files. I have obtained the printer details via APRINTER() but just need to be able to set default, do my printing, then set back again. Any ideas?
>
>Can you use GETPRINTER for the first part of the question and SET PRINTER TO for the second?
>
>HTH,

Bill,
GetPrinter() is a user-selectable option - I want to change programmatically. I found it straight away though - x=set("printer",2) returns the name.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform