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:
00158235
Views:
23
Hi George

I found a DLL that will do the job. Perhaps you are interested. You can check out Power Printer at www.digitalw.com

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?
>>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform