Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Default Printer ?
Message
 
 
To
06/09/2001 22:06:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00553536
Message ID:
00553538
Views:
17
>I need to set the default windows printer. I tried using the SET PRINTER TO NAME, but it only changes the default VFP printer. Is there a way in native VFP to change the default windows printer? If not, is there a windows api function that I can use to accomplish this?
>
>Thanks,
>Alan

You can do this thru WSH
oNet = CREATEOBJECT("WScript.Network")
oNet.SetDefaultPrinter("\\Server\Print1")
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform