Article View: comp.os.os2.programmer
Article #2130how to write auto-switch print program?
From: Andy Poulsen
Date: Sat, 17 Oct 1992 03:49
Date: Sat, 17 Oct 1992 03:49
33 lines
1750 bytes
1750 bytes
hi, i've got an NEC silentwriter model 95 printer. it's a postscript printer that also has HP laserjet III emulation. unfortunately, the switching is done in software or from the control panel -- there is no auotdectect in hardware as to whether it should be in postscript or LJIII mode. I've got the codees required to switch modes, but i'd like to be able to have a program that monitors the printer port and check the frist 2 bytes of each job to see if it's a postscript or LJIII file, and changes the mode of the printer. so the question is: what's required to do this? is there any hope of getting a dedicated printer driver that incorporates auto-switching? i find this unlikely. so the question becomes: how does one write a program to do this? also, shen i tried to install the laserjet III driver, i wanted to put it also on lpt1, and it's not happy with that. what's the best wya to have both printers being able to access lpt1? having them print to a file, and specifying lpt1.os2 as the file? any help much appreciated. thanks in advance! andy -- andy poulsen * jpl 169-214/pasadena, ca 91109 * we engineers have a saying: (617) 227-7655 * andy@huey.jpl.nasa.gov * we may be dumb, but we're slow...
Technical Details
Message-ID:
<ANDY.92Oct16194943@huey.jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!elroy.jpl.nasa.gov!jato!huey!andyShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!elroy.jpl.nasa.gov!jato!huey!andy From: andy@huey.jpl.nasa.gov (Andy Poulsen) Subject: how to write auto-switch print program? Message-ID: <ANDY.92Oct16194943@huey.jpl.nasa.gov> Sender: news@huey.jpl.nasa.gov Nntp-Posting-Host: huey Organization: JPL Optical Interferometry Group, ... Distribution: world Date: Sat, 17 Oct 1992 03:49:43 GMT Lines: 33