>Can someone point me to a resource where I could obtain info on changing the current printer and tray using API functions. The function would take into account that any other program running concurrently with the VFP app would be able to use the default settings of the printer driver.
I don't know of anything on doing this in VFP; I'd look at Dan Appleman's
Visual Basic Programmer's Guide to the Win32 API from Ziff-Davis Press; Chapter 12 deals with the print related APIs in some detail, and with a bit of tinkering, adapting the VB code to VFP isn't that tough to do.