yossie@fnal.fnal.gov (Yossie Silverman) (04/10/91)
I need to set landscape mode for a printer through program control. The reason is that I am printing to forms which only have one orientation and don't think that the user should have to change the page setup each time (s)he wants to print. I have researched and found that unsetting bit $02 of the TPrStl.wDev field will do this. If I then call PRValidate, the rest of the fields (page rectangle, etc..) get adjusted to match. This seems to be pretty safe, although I bet Apple is already planning on moving this field (:-) Aside from the obvious use of an undocumeted feature, is there anything wrong with this? Is there a better way? I will further test it myself with various printer drivers, but so far it works fine with the LaserWriter and the PrintPreviewer I have. Thanks in advance - Yossie --- yossie@fnal.fnal.gov; yossie@fnccf.bitnet What did the Caspian Sea? - Saki