>>Hi, how can I set the Default Windows Printer (SET("Printer", 2) from within VFP?
>
>The easiest way is to use the Windows Script Host Wscript.Network object - it has a SetDefaultPrinter method that changes the Windows Default printer assignment:
>
>
oWSHNet = CREATEOBJ('Wscript.Network')
>oWSHNet.SetDefaultPrinter('SomeWindowsPrinterName')
>
>You can find detailed information on this in VFP in the 5 part article that George Tasker and I did back in the Fall of 2000 for VFUG, available in the back issues section of
www.vfug.org, or in many of the links in my sig block below.
It worked fine. Thanks.