Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change the Windows default printer ?
Message
From
15/05/2001 02:53:36
 
 
To
15/05/2001 02:29:43
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00507153
Message ID:
00507155
Views:
16
>Hello !
>
>I would like to know if it is possible to change the default printer in Windows by programming in VFP 6 ?

From Sergey Berezniker:

You can do this thru WSH
oNet = CREATEOBJECT("WScript.Network")
oNet.SetDefaultPrinter("\\Server\Print1")
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform