Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Landscape Mode without using the Page Setup Dial
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00155046
Message ID:
00155679
Views:
25
>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.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform