🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #651

stdprn and laser printers

#651
From: FREEBIRD!
Date: Mon, 28 Sep 1992 23:24
18 lines
1079 bytes
I'm using Microsoft C 6.0 to dump text to a printer using the 'fprintf'
statement to the stream 'stdprn.'  The expected output is about 58 lines
long, and is followed by a form feed character.

This works fine for dot-matrix printers, but I've tried this on an HP
Laser Jet, and a Desk Jet, and they both eject a page with only 1 line
on it.

It works when I dump the text to a file, and then use a system call to
the 'print' command, but I'm interested in knowing why my original code
doesn't work correctly.  Does anyone know what's happening, and how I
can correct it with a minimum of code changes?  Thanks a lot.

Dale Kim
dalekim@ingres.com
ASK Computer Systems
Ingres Division
Technical Details
Message-ID: <1992Sep28.232457.8808@pony.Ingres.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!sgiblab!rtech!ingres!dalekim

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!sgiblab!rtech!ingres!dalekim
From: dalekim@Ingres.COM (FREEBIRD!)
Subject: stdprn and laser printers
Message-ID: <1992Sep28.232457.8808@pony.Ingres.COM>
Reply-To: dalekim@Ingres.COM (Dale Kim)
Organization: Ask Computer Systems Inc., Alameda CA 94501
Date: 28 Sep 92 23:24:57 GMT
Lines: 19