Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to send Esc code to Epson LQ-590II for draft, courier, etc. 1

Steve Yu

Programmer
Nov 6, 2021
121
US
Hello colleagues,


Above is an old thread that deals with exactly the same issue as I'm having now.
My code:

mpname = GETPRINTER()
SET PRINTER TO NAME &mpname
SET DEVICE TO print
SET PRINTER on
??? chr(27) + "x" + "0" && draft mode
??? chr(27) + "k" + "2" && courier
? "Hello World"
set printer to

The front panel display of Epson does not change, showing 'script' instead of USD or HSD.
Any output after that seems to resemble letter quality, not the draft mode I expected.
And the courier font does not seem to work either.

Help appreciated.
 
Hello colleagues,


Above is an old thread that deals with exactly the same issue as I'm having now.
My code:

mpname = GETPRINTER()
SET PRINTER TO NAME &mpname
SET DEVICE TO print
SET PRINTER on
??? chr(27) + "x" + "0" && draft mode
??? chr(27) + "k" + "2" && courier
? "Hello World"
set printer to

The front panel display of Epson does not change, showing 'script' instead of USD or HSD.
Any output after that seems to resemble letter quality, not the draft mode I expected.
And the courier font does not seem to work either.

Help appreciated.
Make sure that you use a printer driver that passes the data directly to the printer. It's called Generic, text only, or something like that.
 
That did it.
Changed the driver from Epson to Generic/Text and the Esc code went through and reconfigured the fonts.
Thanks everyone.
One note: even I set Widows printer property to no spool (print direct), the print job still went to the print queue and won't go away until multiple 'set printer to', 'set printer off' commands. What is the exact command to end the print job ?
 
This might help.

As it talks of starting the print spooler service, finally, I wonder what you mean with a no spool printer property.

And what ends a print job you do with ??? after you SET PRINTER ON? I'd guess SET PRINTER OFF.

Or, if not, it would be one of the specific escape sequences you would send to your printer, wouldn't it?
 
Last edited:

Part and Inventory Search

Sponsor

Back
Top