1848490 Members
6820 Online
104029 Solutions
New Discussion

Re: printing problem

 
Jeff Hagstrom
Regular Advisor

printing problem

I have a RP7410 running hpux 11.i. Wer running a program called EFORMZ. Eformz wraps a form around data. My data layout is wider then 80 columns. It uses java to wrap the data file and the form together thru EFORMZ. What prints is 80 columns of data and the form. It is leaving off about 12 characters. My boss seems to think that when they are merged together, to create the PCL file, po.prn, they are sent thru a virtula printer on unix. He's saying that the virtual printer needs to be changed to allow for the over 80 bytes per line.
3 REPLIES 3
spex
Honored Contributor

Re: printing problem

Jeff,

I've never used eFORMz, but here are some ideas you might try:

1) grep '80' /*
2) Make sure that your printer supports more than 80 columns.
3) Check if 'po.prn' contains more than 80 columns.
4) Print a textfile from HP-UX and confirm that the output contains more than 80 columns.
5) Consult eFORMz documentation.

PCS
Jonathan Fife
Honored Contributor

Re: printing problem

Assuming it is a network printer, most of the PCL model scripts accept -o options to modify the PCL.

eg.

lp -d hp5si_printer -o fp12 po.prn

would set the font pitch to 12, increasing the number of chars per inch.

lp -d hp5si_printer -o lm80 po.prn

would set the left column # to 80.

There are typically flags for most of the common PCL commands. If you browse through the /var/spool/lp/interface/model.orig/ file you should see the available options. I'd look for fp, lm, rm, and c.

HTH

Jonathan
Decay is inherent in all compounded things. Strive on with diligence
Jaime Bolanos Rojas.
Honored Contributor

Re: printing problem

Jeff,

Taking a look at the man page for pr I found this:

"By default, columns are of equal width, separated by at least one space; lines that do not fit are truncated. If the -s option is used, lines are not truncated and columns are separated by the separation
character."

Maybe you can play with the -sc option in pr

For more info see man pr

Regards,

Jaime.
Work hard when the need comes out.