>Regarding the KB article you referenced. I took a look at it and the 1st argument it needs is:
>
>hPrinter
>The first parameter is a handle to the printer whose settings are to be changed. This should be retrieved from OpenPrinter().
>
>Won't I need the printer handle that foxpro has internally? Otherwise, I think, I'm just creating a new handle that changes the settings for that printer handle but not the one foxpro is going to use for the set device to print.
>
>If that is the case, is there any way to get at the foxpro printer handle??
>
>
>tia
>
Hi scott,
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.
George
Ubi caritas et amor, deus ibi est