>>Barbara
>>
>>Yes, I use the ??? command with HP printers because I have been able to obtain the proper control codes. If works fine. However, I was also wondering whether it can be done through the Windows API. If it could then I could set any printer even if I did not know the control codes.
>>
>>Thanks
>>
>Hi Simon,
>
>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?
Thanks
Simon
Simon White
dCipher Computing