Hi George
I found a DLL that will do the job. Perhaps you are interested. You can check out Power Printer at
www.digitalw.comSimon
>>>Yeah, there's an API function to do it (SetPrinter() with a PRINTER_INFO_2 structure), but I'd say it'd be easier to write a DLL to do it rather than trying in VFP. The problem is that the structure contains a pointer to a DEVMODE structure, as well as several strings. Given VFP's memory management, it might not be possible to do it in pure VFP code.
>>
>>Do you know if anyone has created such a DLL or has code that can handle the printer orientation?
>>
>Hi Simon,
>
>No, I afraid I don't.
>
>As a follow up, I have been playing around with trying to retrieve a complete PRINTER_INFO_2 structure. My problem is with the DEVMODE structure that it points to. That's where the orientation is stored. It may be that I'm missing something, but as of yet, I haven't determined what that is.
>
>Something, though, has me very curious. As you may be aware, this information is stored in the registry, including an entry with the name Default Devmode, which would lead one to believe that it's the structure we're after. However, after examination of it, it's exactly twice the size that the documentation indicates (296 vs. 148 bytes).
Simon White
dCipher Computing