Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change the default windows printer?
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00198775
Message ID:
00198836
Views:
18
>I've tried using:
>
>set printer to getprinter()
>
>but no matter which printer I select, when I rerun the command, the default has not changed!
>
>Thanx in advance!

I have the following in a *Select Printer* command button subclass:
in the click method:

local lcPrinter
lcPrinter = getprinter()
if !empty(lcPrinter)
   set printer name to (lcPrinter
endif

in the destroy method

set printer to default
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform