🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
4 messages
4 total messages Started by FREEBIRD! Mon, 28 Sep 1992 23:24
stdprn and laser printers
#651
Author: 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
Re: stdprn and laser printers
#652
Author: Ronald E Garnett
Date: Tue, 29 Sep 1992 02:32
43 lines
2226 bytes
dalekim@Ingres.COM (FREEBIRD!) writes:


>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


First Guess:  Is there a significant time period between writing lines
to STDPRN (ie a few seconds)?  If so, there could be a question of
printer timeout.  I don't believe that the HP's have a method of simply
dumping out the hex characters they receive.  But if they did, then you
could run your program and see EXACTLY what the printers are getting.
This might reveal an extra form feed or whatever!

If you happen to have access to an IBM 4029 Laser Printer, then try using
it instead (for testing purposes).  It has a hex dump mode, and can show
you every character that the printer gets.  It's very handy when 
troubleshooting these things!

A third idea is to find one of those little neat utilities for redirecting
the standard LPT1 or STDPRN to a file.  PC Mag has this in their utils I
believe.  If you could do this, it would hopefully be equivalent to the
hex dump from the printer.  

Good Luck!!

Ron Garnett,
University of Illinois at Champaign-Urbana
Re: stdprn and laser printers
#660
Author: The Raven
Date: Tue, 29 Sep 1992 18:54
8 lines
922 bytes
Sorry, this isn't quite a followup, and since I'm new, I don't know how
to post to newsgroups yet (I mostly just followup, anyway).  This sort
of has to do with printers, though.  I need to locate a printer file for
use with WordPerfect 5.1 for an Epson LQ-570 printer.  If anyone has one
or knows where I can FTP one, please let me know.  I haven't had any
success so far.

							-Kev
Re: stdprn and laser printers
#673
Author: Jack Sunderman
Date: Thu, 01 Oct 1992 17:38
39 lines
1890 bytes
klangevi@cs.ulowell.edu (The Raven) writes:

>Sorry, this isn't quite a followup, and since I'm new, I don't know how
>to post to newsgroups yet (I mostly just followup, anyway).  This sort
>of has to do with printers, though.  I need to locate a printer file for
>use with WordPerfect 5.1 for an Epson LQ-570 printer.  If anyone has one
>or knows where I can FTP one, please let me know.  I haven't had any
>success so far.

>							-Kev

You can call Word Perfect directly at 

1-800-541-5170  this is there printer support line and they will mail
you a disk with the driver on it.

Any other problems and you can call

1-800-641-5096 they will transfer you to the write number.

NOTE -- These are free help lines and the last time I called for a
print driver that did not even charge me for the disk or postage.


This should help

Jack


(======================================================================)
Jack Sunderman -Grad student in Comp. Sc. Working for Dept. of Surgery.
e-mail:    sunderma@usceast.cs.scarolina.edu

Disclaimer: Jack's views are solely his own and to be taken with a
	grain of salt.
(======================================================================)
Kick it! Kick it! No here! Kick it! Harder! Hit the Ball! Hit the Ball!
Sorry inside joke.
(======================================================================)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads