vb6中的代码以使用USB打印条形码到打印机tlp2844 [英] code in vb6 to print barcode using usb, to printer tlp2844

查看:105
本文介绍了vb6中的代码以使用USB打印条形码到打印机tlp2844的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码

1.文本文件名Barcode.txt,其中保存了标签设计代码

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

用于两个尺寸为50x25的标签

并将其发送到打印机的lpt1端口,效果很好
但是当我尝试使用USB端口将此文本文件发送到打印机时,输出将打印上述代码而不是条形码

任何人请解决此问题

***当我使用usb电缆而不是LPT时,我希望通过发送Barcode.txt文件来将条形码打印到tlp2844斑马打印机.

任何其他解决方案

谢谢

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

推荐答案

这是纯ASCII文本.此类文本通常由打印机作为文本打印.您为什么要在地球上打印其他任何内容?

您的打印机可能具有图形模式(您的打印机支持特殊的条形码模式和条形码语言"),但是切换到该模式始终使用控制字符,控制字符始终是非打印字符 i>;参见 http://en.wikipedia.org/wiki/Control_character [ http://www.zebra.com/id/zebra/na/en/index/products/printers/desktop/tlp2844.html [
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


这篇关于vb6中的代码以使用USB打印条形码到打印机tlp2844的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆