Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!daemon From: yossie@fnal.fnal.gov (Yossie Silverman) Newsgroups: comp.sys.mac.programmer Subject: How to set Landscape mode for a printer... Message-ID: Date: 9 Apr 91 20:35:49 GMT Sender: daemon@linac.fnal.gov (The Background Man) Organization: Fermilab Lines: 22 Nntp-Posting-Host: whooper.fnal.gov 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