Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Windows default printer
Message
From
05/02/2007 04:52:21
 
 
To
05/02/2007 04:47:55
Aman Bains
Jaguar Computers
Jalandhar, India
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Miscellaneous
Thread ID:
01192297
Message ID:
01192305
Views:
13
>>>How to Change Windows default printer in Win 98 programatically?
>>>How to Change Windows default printer in Win XP programatically?
>
>>Don't.
>>If some application starts to mess with MY settings, this application will be uninstalled immediately.
>
>I only want to change it temporarily, then change back to original printer, once my job is done.

You don't need to change the default printer to do that, do you?
lcOldPrinter=set('printer',2) && Windows default
lcPrinter=getprinter()
Set printer to name (lcPrinter)
** do your stuff
Set printer to name (lcOldPrinter) && Probably not necessary
Previous
Reply
Map
View

Click here to load this message in the networking platform