Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the printable paper size.
Message
From
29/11/2007 16:55:01
 
 
To
29/11/2007 08:28:04
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01271715
Message ID:
01272240
Views:
19
>>>>See if http://www.berezniker.com/display/VFP/Determine+Printer+Margins+Programmatically helps.
>>>
>>>
>>>As always,
>>>
>>>PERFECT !
>>>
>>>Thanks very much Sergey !
>
>Hi Sergey,
>
>Do you have any more of these ??
>
>I need to set printer in landscape mode.
>Can this be done as well ?

Sergio,

As you are sending your image directly to the printer, you can rotate the image using GDI+.

With PRTINFO() you can know the current printer settings. If needed, just rotate it !

For a better sample, please open the file "System.drawing.prg", loof for the method "ToPrinter()". There you'll find all the codes needed to do what you need.

The only missing part is the tip received recently from Sergey that allows us to obtain the paper margins.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform