>>>>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.