Article View: comp.os.ms-windows.programmer.tools
Article #614Landscape Mode Printing
From: Blake Mcneill 281-9391
Date: Tue, 22 Dec 1992 09:50
Date: Tue, 22 Dec 1992 09:50
33 lines
2002 bytes
2002 bytes
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??
Technical Details
Message-ID:
<1992Dec22.095037.25822@cuug.ab.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cuugnet!mcneillbReferences:
<1658@bdrc.bdrc.bd.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cuugnet!mcneillb From: mcneillb@cuug.ab.ca (Blake Mcneill 281-9391) Subject: Landscape Mode Printing Message-ID: <1992Dec22.095037.25822@cuug.ab.ca> Keywords: Landscape Printing Problems Organization: Calgary UNIX Users' Group References: <1658@bdrc.bdrc.bd.com> Date: Tue, 22 Dec 1992 09:50:37 GMT Lines: 35