Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the Computers Default Printer
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00719936
Message ID:
00719996
Views:
10
You can use VFP SET() function for that.
ThisForm.PrinterName = SET("printer", 2)
>oNet = CREATEOBJECT("WScript.Network")
>oNet.SetDefaultPrinter("\\Server\Print1"
>
>That's perfect. You don't happen to have the other half of the answer:
>
>I tried:
>
>ThisForm.PrinterName = oNet.GetDefaultPrinter()
>
>and it failed.
>
>TIA
>
>DJ
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform