×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

New to PCL so very simple quick question

New to PCL so very simple quick question

New to PCL so very simple quick question

(OP)

I have a laserjet 6P connected to an old DOS machine printing reports. Is there a way to tell the printer to always print in landscape mode without having to place a PCL command at the end of each report printed?

The problem is I'm not sure of the exact method of sending PCL to the printer. I've run EDIT and used:

<-&l1O (where <- is received by hitting CTRL P then the escape key)

Then I've saved that and sent it to the printer with:

copy test.txt LPT1:

Nothing actually prints from the printer although the light blinks as if it is receiving data. Then when I print out the next report it still comes out portrait. Does this have to be changed on a report-to-report basis or can I permanently fix this setting? I realize it's probably something very simple but this is the first and probably last time I'll ever have to forage into PCL programming so if someone could point me in the right direction I'd appreciate it.

Thanks.

RE: New to PCL so very simple quick question

I don't think the 6P has a control panel where you can set the default orientation.

Start your print job with...

<esc>E<esc>&l2a1o8c3e45F

Those commands reset the printer, select letter size(2a), landscape(1o), 6 lpi(8c), 3 line top margin(3e), and 45 print lines(45F).

Your print job should end with <esc>E as it began.

Enter the <esc> as you have.

Note that the orientation command must appear BEFORE any printable data appears.

Use     copy /b test.txt LPT1:

to force a binary copy to the printer

Jim Asman
http://www.spectracolorservices.com

RE: New to PCL so very simple quick question

(OP)

No it definitely doesn't have a control panel. When you print out the configuration page though it does have a line that says ORIENTATION = P (Portrait) so that information is stored in the printer somewhere.

I don't know the program well enough to insert PCL code into the reports it generates which is why I was asking about changing the default setting.

Any other thoughts? Can I change the default font size for every print job?

Thanks anyways though.

RE: New to PCL so very simple quick question

(OP)
That's perfect. Exactly what I needed. Thanks a ton!

RE: New to PCL so very simple quick question

when copying a file to the printer containing pcl code,
be sure and use the /b option (binary) !! as jlasman stated.

using
copy my.text lpt1:
will have different results than
copy my.text /b lpt1:
when pcl is involved (or any control codes for a printer)

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