Operating System - HP-UX
1832983 Members
3344 Online
110048 Solutions
New Discussion

Formfeeds Ignored On Printer

 
Radnour Acton-Page_1
Occasional Advisor

Formfeeds Ignored On Printer

We have two continuous form printers, hanging off Hp Jet Directs. When I print from Unix, formfeeds are ignored. I have stopped the queues to see whether the formfeeds are in the files being printed (they are) but when they are printed the printer does not feed and outputs are one after another with no gaps. Any suggestions ?
A Unix Newbie
10 REPLIES 10
Steve Steel
Honored Contributor

Re: Formfeeds Ignored On Printer

Hi


What type of printers and which model script.


You may need to get this printer to formfeed by using the following options:
lp -dname -ol66 -otl60 file

-ol = pagelen 66
-otl60 = textlen 60

Vary as required


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
K.Vijayaragavan.
Respected Contributor

Re: Formfeeds Ignored On Printer

What is the type of file you are printing and what command you are using to take print?

-Vijay
"Let us fine tune our knowledge together"
Radnour Acton-Page_1
Occasional Advisor

Re: Formfeeds Ignored On Printer

Hi Steve

The two printers are a Tally 2240 and an Epson DFX-8500.

I am using the dumbcr model.
A Unix Newbie
S.K. Chan
Honored Contributor

Re: Formfeeds Ignored On Printer

If you're using a "dumb" printer script model, somewhere in the script it should look like this ..

......
i=1
while [ $i -le $copies ]
do
for file in $files
do
cat "$file" 2>&1
echo "\014\c"
done
i=`expr $i + 1`
done

check if the echo "\014\c" exist.



Radnour Acton-Page_1
Occasional Advisor

Re: Formfeeds Ignored On Printer

I tried the
# lp -dname -ol66 -otl60 file

but one file butted against the other halfway down the page.

Looked at the script and there is \014\c

I should say we use this script with some lasers and they ff okay.

A Unix Newbie
Carlos Fernandez Riera
Honored Contributor

Re: Formfeeds Ignored On Printer

Check printers configuration.

Check FF must be followed by CR (FF+CR) or FF+NL.

Just an idea.
unsupported
K.Vijayaragavan.
Respected Contributor

Re: Formfeeds Ignored On Printer

Problem must be because of two form feeds (FF) / CR (one by the printer it self and another by the script or the file state).

Skip any of the one and see what happens.

K.Vijay
"Let us fine tune our knowledge together"
Steve Steel
Honored Contributor

Re: Formfeeds Ignored On Printer

Hi


This all looks good but remember

Very important: JetDirect scripts in the interface directory are generic and only handle the LAN process. The 'real' script is located under the interface directory in the model.orig directory. This is the script that controls the printing behavior of the print job.

Make a script containing a line and a formfeed
by adding cntrl L which will get translated as form feed when put to the printer interface

Print it twice and see what happens.

Please post the printer scripts from
/etc/lp/interface
/etc/lp/interface/model.orig

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Radnour Acton-Page_1
Occasional Advisor

Re: Formfeeds Ignored On Printer

Here's the Interface
A Unix Newbie
Radnour Acton-Page_1
Occasional Advisor

Re: Formfeeds Ignored On Printer

And this is the other
A Unix Newbie