Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!aunro!ersys!andrew From: ersys!andrew@nro.cs.athabascau.ca (Andrew Folkins) Newsgroups: comp.windows.ms.programmer Subject: Setting printer orientation? Message-ID: Date: 30 Apr 91 07:57:34 GMT Organization: Edmonton Remote Systems, Edmonton, AB, Canada Lines: 19 Hi folks. Here's the deal. I want to generate some output, with some pages printed in portrait orientation and some in landscape. Is there a simple way to do this? It would appear that the answer is the printer escape GETSETPAPERORIENT (that might be PAGE, it's _not_ PRINT). MicroSoft very kindly documented it in the SDK, but neglected to include a #define in "windows.h". I know they say 'try not to use this', but does anyone out there know the proper value of the #define? The 'correct' method is supposedly to use ExtDeviceMode, but I get the impression that I'll have to re-create the printer device context every time I want to change the paper orientation (so that the device context reflects the current physical page size and layout). I would rather not have to start a new document every time I switch page orientation. Andrew Folkins ersys!andrew@nro.cs.athabascau.ca Edmonton Remote Systems: Serving Northern Alberta since 1982