×
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

How to customize default printer settings?

How to customize default printer settings?

How to customize default printer settings?

(OP)
Hi all,

Can we specify the default printing settings of a printer using PCL commands?

For example, I would like to make my printer's default settings as,

Font - Letter gothic 17 chars/inch and 8 lines/inch.
Margin - 2 columns left(&a2L) and 2 lines top(&l2E).
Orientation - Landscape

My requirement is, if I am not specifying anything in my program, the printer should take these settings, and if I am giving some commands explicitly, they should over ride these defaults. Could anyone of you please help me to achieve this?

Thanks in advance,
RNTH.

RE: How to customize default printer settings?

I would think the easiest way would be to set the defaults
with the printers LCD or whatever method it uses.
Secondarily, always use the font/size that you want when
printing. That is, always program it in.

RE: How to customize default printer settings?

These commands depend on the font availability in the printer and the emulation of PCL, but should help you a little in working out what to do to get what you want. Hope these commands help.

e$=chr$(27$)  ' <esc>

'Letter Gothic
e$;"(8U";e$;"s0p???h0s0b4102T";  ' ??? is pitch size

' Landscape Orientation
e$;"E";e$;"&l1O";        ' reset/landscape

'Set top margin (change 0 to set new margin)
e$;"&l0E";               ' set top margin to 0

' Feed from manual tray
lprint e$;"&l2H";               

' Set different page sizes
lprint e$;"&l3A";               

' set top offset to move page down
e$;"&l200Z";            

' Number of duplicate copies of page to print
lprint e$;"&l1X";              

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