Escape sequences ??

I

InOverMyHead

How can I send escape sequences to a (PCL-5 LaserJet) printer. Maybe a
command-line entry?? or put into a batch file? [Didn't we used to embed
these things in Lotus 1-2-3 spreadsheets to get the right orientation &
font? Wow - that was a long time ago.]

For example, to eject a page - <Esc>?&l0H

Is there any little utility program that will pass the common sequences to a
printer? Or is it a hex editor I need? If so, how do I enter the <Esc> ?

Any help would be greatly appreciated.

<ESC>E<ESC>(s12HBob<ESC>E
 
W

Warren Block

InOverMyHead said:
How can I send escape sequences to a (PCL-5 LaserJet) printer.

It depends on how the printer is connected and what you're trying to
achieve.
Maybe a command-line entry??
Sure.

or put into a batch file?
Yes.

[Didn't we used to embed these things in Lotus 1-2-3 spreadsheets to
get the right orientation & font? Wow - that was a long time ago.]

Things have changed greatly since then. Many print jobs are now just
big bitmaps. Those that are character-based will try to initialize the
printer to a known state, overriding the escape sequences you've sent.
Which is often no loss, since the print job has been laid out so that
unexpected changes would break it anyway.
For example, to eject a page - <Esc>?&l0H

Is there any little utility program that will pass the common sequences to a
printer?

Probably. It would depend on what operating system you use and how the
printer is connected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top