Path: 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: 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. 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