Article View: comp.os.ms-windows.programmer.tools
Article #650Re: Landscape Mode Printing
From: Chris Marriott
Date: Tue, 22 Dec 1992 22:12
Date: Tue, 22 Dec 1992 22:12
56 lines
2927 bytes
2927 bytes
In article <1992Dec22.095037.25822@cuug.ab.ca> mcneillb@cuug.ab.ca writes: >I have a problem concerning printing in Landscape mode in >Windows 3.1 in a program that I am writing with Borland C++ >version 3.1. What is frustrating about this is that >everything works when I print Portrait mode but nothing >prints under Landscape mode (Laserjet IIIsi or Roland 9 >pin). I'm under the impression that there is no difference >in my code for Portrait and Landscape modes since windows >handles the print orientation. Could I be wrong?? It >wouldn't be the first time! I have tried some other source >code (DLGDEMO4 from PC-Magazine July 1992 by Ray Duncan, for >example) and have found that these programs also fail to >print in Landscape mode. > >If I use landscape mode the window does not refresh from the >print dialog box and the program hangs on the EndPage >function until I cancel the print job. Nothing is sent to >the printer. Something is sent to the Print Spooler (a >StartDoc or StartPage) but no record of anything to >physically print. If I click anywhere other then the cancel >print job button in my abort print dialog, I might have to >cntrl-alt-del the program to kill it. I know that my >printer works with Landscape mode since NotePad and other >applications print Landscape mode just fine. Could my >problem be something that I'm missing or could it be some >undocumented function or what? > >Any help would be greatly appreciated. > >Blake McNeill > >@cuugnet.cuug.ab.ca > >Does a psychic's phone ever ring?? > > > Sounds like a bug in your printer driver? Why not try installing another printer driver - one of the well-known ones such as PostScript or HP LaserJet - and see if the problem still occurs. Set the printer port to "file" if you don't actually have another printer. BTW, I've written lots of Windows software that does landscape-mode printing, and it all works fine! Chris -- -------------------------------------------------------------------------- | Chris Marriott | chris@chrism.demon.co.uk | | Warrington, UK | BIX: cmarriott | | (Still awaiting inspiration | CIX: cmarriott | | for a witty .sig .... ) | CompuServe: 100113,1140 | --------------------------------------------------------------------------
Technical Details
Message-ID:
<725062364snz@chrism.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chrisReferences:
<1992Dec22.095037.25822@cuug.ab.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools From: chris@chrism.demon.co.uk (Chris Marriott) Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris Subject: Re: Landscape Mode Printing Distribution: world References: <1992Dec22.095037.25822@cuug.ab.ca> Organization: None Reply-To: chris@chrism.demon.co.uk X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19) Lines: 56 Date: Tue, 22 Dec 1992 22:12:44 +0000 Message-ID: <725062364snz@chrism.demon.co.uk> Sender: usenet@demon.co.uk