Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

laserjet 4100 and lpi

Status
Not open for further replies.

eanda10

Programmer
Apr 9, 2002
141
US
I set up a new Hp4100 on my network running via tcp/ip it prints fine from my SCO open server 5.0.4 except when you try to send the -o lpi=# option you get a message "The following options can't be handled
-o lpi="

after looking through the interface scripts the option of lpi does exist.

Does anybody got any ideas??
 
What is the full print command you are sending to the printer, and what printer interface are you using? Tcp/ip is typically used for remote printing. The lp man page says "For remote printers, -o can only be specified once and the list of options must be enclosed in double quotation marks (")." Is your problem possibly that you are using the -o incorrectly for your remote printer setup?


Here are the example excerpts from the lp man page for when you want more than one print job option:

Print the file foo, without a banner and with 60 lines to a page, on a local printer:

lp -o nobanner -o length=60 -d local foo

Print the file foo, without a banner and with 60 lines to a page, on a remote printer:

lp -o "nobanner,length=60" -d remote foo


Perhaps you should try printing with a command line similar to:

lp -o "lpi=#" -d printer filename
 
What happens if you remove the = from the option?

For example for 8 lines per inch try

lp -d printer -o lpi8 -o nb file

If this option follows the HP PCL code, the
it is likely that the only valid values will
divide evenly into 48... 1, 2, 3, 4, 6, 8, 12, 16, 24, 48

Where the above is stating lines per inch, the
vertical motion index states the depth of the line
in 1/48ths of an inch. the -o vsi option is used.
Four decimal points are valid.

To print at 6.5 lines per inch, divide 48/6.5 = 7.3846
to get the needed value for the vsi option

lp -d printer -o vsi7.3846 -o nb file

You may have to reset the page and text length for it
all to make sense.

Jim Asman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top