Link to home
Start Free TrialLog in
Avatar of rjagan
rjagan

asked on

How to print escape sequences in a printer?

Hi all,
   I'am basically trying to to print some escape sequences along with certain characters to invoke a certain type of printing in printers. Let me explain the problem in brief. I have a dot matrix printer which when sent with certain escape sequences it will print in a certain language. I tried giving the print sequence by booting in dos, typing in a editor, echo sequences etc but it didn't work.

Please help me out on how to go about printing the escape sequences..


Thanks in advance,

Regards,
Jagan R
Avatar of joed
joed
Flag of Canada image

What program are you using? There should be a way within your program to send hex codes. If I remember correctly hex 27 is esc. So you send hex27 followed by the second char of the sequence.
Avatar of rjagan
rjagan

ASKER

Hi,
  Thanks a lot for your answer. I got it..


Regards,
Jagan
¿Was Joed the right answer?  If not, ¿what's the problem you have?
ESC is X1B, or decimal 27, not X27.
I agree with viiking, I'd like to know what the answer was.

Maureen
ASKER CERTIFIED SOLUTION
Avatar of My name is Mud
My name is Mud

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial