>>>There isn't a handle that Foxpro uses internally for it. It uses OpenPrinter
>>>just like any other application when it needs it, and closes it afterward.
>>>Any code that you would implement should do the same.
>
>
>but.but.but i'm trying to change the behavior of set device to print because i have these stupid legacy reports that print forms.
OIC. FoxPro *may* be reading from the registry then, but it probably doesn't care. It just directs the output to the device, without formatting, etc. Whatever the default settings are (established in the devmode structure) would probably be used by Windows for the output. Don't forget, Fox just hands the print job off to Windows, basically.
>if foxpro uses open printer how can i change the orientation to landscape of that handle after it's created? or maybe trick it to create what i want??
If I'm right in the above, then setting the orientation in the registry, might be used by Windows when it gets the info from VFP. Don't forget to put things back the way you found them afterwards.
George
Ubi caritas et amor, deus ibi est