Typically, it is not a good idea for applications to change the default printer - as specified by the Windows OS. If you need to redirect printing in your application - I suggest using the Set Printer command. This way, requirements in your VFP application do not affect other applications.
If you do need a global change - I would suggest using the Windows Scripting Host. A great article on how to use this new library can be found in MSDN Online. Go to
http://msdn.microsoft.com/developer/ for details.
>How can VFP change the default printer programmatically?
>
>Thanks a lot.