Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
code

1. text file name barcode.txt in which i kept label design code

Q200,019
q831
rN
S4
D7
ZT
JB
OD
R16,0
N
A786,164,2,1,2,2,N,"RAZVI fashion"
B785,138,2,1A,1,3,53,N,"CODE1CODE0001"
A785,84,2,1,1,2,N,"CODE1CODE5COD"
A574,84,2,1,1,2,N,"MATERIALS "
A785,47,2,1,1,2,N,"Rate:"
A741,54,2,1,2,3,N,"2219.00*"
A565,55,2,1,2,3,N,"
A387,165,2,1,2,2,N,"RAZVI fashion"
B386,139,2,1A,1,3,53,N,"CODE1CO0001"
A386,84,2,1,1,2,N,"CODE1CODE5D001"
A174,86,2,1,1,2,N,"MATERIALS "
A385,49,2,1,1,2,N,"Rate:"
A340,54,2,1,2,3,N,"2219.00*"
A165,55,2,1,2,3,N,"
P1

for two labels 50x25 size

and this sent to printer to lpt1 port which works good
but when i try to send this text file using usb port to printer the out put prints the above code instead of barcode

any one please solve this

*** i want help to print barcode to tlp2844 zebra printer when i use usb cable instead of LPT by sending barcode.txt file
or
any other solution

thank you
Posted

1 solution

This is a pure ASCII text. Such text is normally printed as text by a printer. Why on Earth would you expect printing anything else?

You printer may have graphics mode (you printer supports special barcode mode and barcode "languages"), but switching into this mode always use control character which are always — just thing of about this term — are non-printing characters; see http://en.wikipedia.org/wiki/Control_character[^].

So, you can find Windows driver for this printer and/or manufacturer documentation: http://www.zebra.com/id/zebra/na/en/index/products/printers/desktop/tlp2844.html[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900