🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Setting printer orientation?

#2411
From: Eric Bergman-Terrell
Date: Fri, 03 May 1991 14:22
17 lines
1524 bytes
The solution is to add a "Setup P&rinter..." submenu under the "File" menu.
When the user chooses the submenu, call the code presented in Petzold, pp.
731, 732.

Anyway when the user selectes the "Setup P&rinter" submenu, that person will
be presented with a big dialog box allowing them to change the configuration
of the printer (including changing from portrait to landscape & vice versa).

Then when your program gets an hdc for the printer and starts issuing gdi
commands, they will be printed as requested by the user.

Note:  I know that this works fine with graphics.  I don't know how text
is handled (esp. device fonts for dot matrix printers).  However I will know
in a few days.

Terrell
Technical Details
Message-ID: <1991May3.142218.25702@mnemosyne.cs.du.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman
References: <Nmi811w164w@ersys.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman
From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Setting printer orientation?
Message-ID: <1991May3.142218.25702@mnemosyne.cs.du.edu>
Date: 3 May 91 14:22:18 GMT
References: <Nmi811w164w@ersys.uucp>
Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
Reply-To: ebergman@isis.UUCP (Eric Bergman-Terrell)
Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.)
Lines: 17
Disclaimer1: Nyx is a public access Unix system run by the University of Denver
Disclaimer2: for the Denver community.  The University has neither control over
Disclaimer3: nor responsibility for the opinions of users.