printing through Arduino Uno

Hi,

I want to print barcode as mention at page 191 on given below link:

L
D11
1A00000001501000123456789
121100000000100Barcode A
E

I am unable to send or to printer using aurdino. I try to send "\x0002"in place of STX but couldn't succeed.

Please suggest what to do?

the serial interface has a command write
https://www.arduino.cc/reference/en/language/functions/communication/serial/write/

which sends the value of a variable as a single byte

Serial.write(65) would print an "A"

short googling
www.google.de/search?as_q=decimal+value+of+stx

decimal value of STX is 2

so a

const byte MySTX = 2
Serial.write(MySTX)

will do the job.

As a general hint. If you don't know how to do it look up the reference to the command.

best regards Stefan