Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Printing Generic Message-ID: <106580063@hpcvlx.HP.COM> Date: 22 Aug 89 16:31:38 GMT References: <258700008@prism> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 25 > Has anyone written Windows code that prints to generic tty printers? > > Our application knows how to print to IBMGRX graphics printers using the >Windows Escape() calls, but fails when making the same calls to a Brother >HR-40 daisywheel printer configured with tty.drv. I know the Brother's >configuration is correct since I print on it successfully from MS Write. >None of the Escape() calls abort and I do TextOut()s with a valid HDC, >but the only output I get is a formfeed. What's wrong here? Thanks for >any suggestions. Are you doing an Escape(NEWFRAME) before you do Escape(ENDDOC)? If not, the print driver won't output the current page. Basic algorithm: Escape(SETABORTPROC) Escape(STARTDOC) print whatever Escape(NEWFRAME) [Repeat print and Escape(NEWFRAME) for each page] Escape(ENDDOC) --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems