You can use function SetPOrient() from pdm.fll (PDM):
liOldPO=SetPOrient(SET("PRINTER",2),2)
=SetPOrient(SET("PRINTER",2),liOldPO)
MartinJ
>I am using DBI-Tech's scheduler activex control and the print functions for this control do not allow the user to specify output orientation. As a result, the user has to select landscape each time they print via the printer dialogue box. Is there an API call available to turn orientation to landscape prior to printing and back to portrait when done?
>
>I have been testing John K's VBPrinter OCX (download 9588) that allows orientation control but it causes VFP6 to hang (using W2k).