Printing problem with PC-INTERFACE
Juha Takala
jta at nic.funet.fi
Fri Dec 28 20:56:31 AEST 1990
From: dnb at rubys.UUCP (Dave Buonomo)
Newsgroups: comp.unix.sysv386
Keywords: PC-INTERFACE, printing problem
Date: 22 Dec 90 04:56:09 GMT
Organization: Ruby Systems (rubys) Rockville, MD
My problem is this: when I try to print some documents, created with Word
Perfect v4.2, on the HP LaserJet, it will print with some lines pulled to
the left of the margin. Attempting to print this same document on the C.ITOH
dot matrix or the same HP LaserJet directly connected to the PC/XT, results
in the documenting printing perfectly!
This souds familiar. We had same problems. My laserjet is (normally)
configured to map LF --> CR+LF (esc & k 2 G). This makes UNIX text
files print correctly, and makes no harm to normal DOS text files. This
is done at the beginning of every print job in the interface script. WP
does not change the setting. But with WP: when some line is indeted
*after a short line*, WP emits one LF, and some BS's, to step to the
correct position. Then it starts printing text. Now it happens, that
the LF brings the printing position to the beg of line, you know the
rest...
To fix the problem, we added into WP's print job setup an ESC sequence
to MAP LF --> LF, CR --> CR (esc & k 0 G). Try this.
To find out what actually goes to lp, you can change the printer
-command (normally in the PC's AUTOEXEC.BAT) to something like:
printer lpt1 host "cat > /tmp/foo" /t15
Then you can study /tmp/foo on the server.
-juha
--
Juha Takala (jta at sah.vtt.fi) tel.: +358-0-456 6415 fax: +358-0-435 67014
Technical Research Centre, Laboratory of Electrical and Automation Engineering
Otakaari 7 B, 02150 Espoo, FINLAND
More information about the Comp.unix.sysv386
mailing list