🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2400

Setting printer orientation?

#2400
From: Andrew Folkins
Date: Tue, 30 Apr 1991 07:57
19 lines
1401 bytes
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
Technical Details
Message-ID: <Nmi811w164w@ersys.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!aunro!ersys!andrew

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <Nmi811w164w@ersys.uucp>
Date: 30 Apr 91 07:57:34 GMT
Organization: Edmonton Remote Systems, Edmonton, AB, Canada
Lines: 19