深深不息 2016-05-17 12:59 采纳率: 33.3%
浏览 2492
已结题

向USB端口发送ZPL文件的代码

网上各位大侠:

我需要向Zebra打印机的USB的端口发送ZPL的指令,但是我在编写好下面的ZPL文件,

^XA
^FO100,100^BY3
^BCN,100,Y,N,N
^FD2418866000001^FS
^XZ
通过下面的VB程序
public sub()
ZPLString = "^FO100,100^BY3" 'This line tells it where to print the barcode
ZPLString = ZPLString & "^BCN,100,Y,N,N" 'This is the line that tells it to print a barcode 128code
ZPLString = ZPLString & "^FD2418866000001^FS" 'This line tells it what data goes in the barcode
Printer.Print "^XA" 'Begin a new label
Printer.Print ZPLString
end sub

打印机没有任何的反应,同时我试着将USB的端口映射到LPT的端口时.使用下面的命令
net use LPT1 \WYZ123\Printer1
出现下面的网络1321的端口错误.

我不知道还有什么方式可以做到将ZPL文件发送给USB端口,实现打印条码.

  • 写回答

3条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
  • ¥15 写论文,需要数据支撑