×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

increase margins but keep 60 rows x 80 cols

increase margins but keep 60 rows x 80 cols

increase margins but keep 60 rows x 80 cols

(OP)
My platform is unix to an HP LJ4 (no Windoze, no drivers, clean...).

By default, a text report sent to the LJ gives me 80 cols by 66 rows (courier 12cpi).  The problem is my L/R margins are too small.  I desire 1/2" of whitespace around the printed area, but I don't want to lose columns to do it.  I think I can reduce the spacing between characters, but this would crowd them (slightly).  To further complicate my needs, I want to start using landscape and tighter pitches 12cpi, 17cpi.  I will always be using a fixed-spaced (mono-spaced?) font, such as Courier.

Let me generalize my problem.  I want to tell my printer his print area (i.e. 1/2" borders), and tell him the number of lines and columns I want within this area - and let him figure out the correct font pitch and spacing.  Can PCL do this??

If I know the following values:
 Tmargin = 1/2"
 Bmargin = 1/2"
 Lmargin = 1/2"
 Rmargin = 1/2"
 Orientation = Portrait
 Lines = 66
 Columns = 80
How I programically convert this into PCL sequences?

-with thanks

RE: increase margins but keep 60 rows x 80 cols

Try this...

<esc>E<esc>&l2a0o7.2727c180u3e66F
<esc>(s0p10.75h0s0b4099T<esc>&k11.2500H

These commands should not be separated by a linefeed which was forced using the editor.

Jim Asman
jlasman@telus.net

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close