我使用vb6。我正在尝试用EZPL(应该是打印机的默认语言(在打印机GODEX 500中打印。
我可以用ZPL打印,但不能用EZPL打印此代码工作(ZPL(
printer.print "^XA
printer.print "^LH0,0
printer.print "^CF0,50,50
printer.print "^FO16,16
printer.print "^FD1^FS
printer.print "^CF0,30,25
printer.print "^FO340,16
printer.print "^FD2022^FS
printer.print "^PQ1,0,1,Y
printer.print "^CF0,35,35
printer.print "^FO130,66
printer.print "^FDFQ^FS
printer.print "^CF0,30,25
printer.print "^FO310,66
printer.print "^FDAGP^FS
printer.print "^CF0,35,35
printer.print "^FO130,110
printer.print "^FDPET^FS
printer.print "^CF0,30,30
printer.print "^FO130,155
printer.print "^FD100ml^FS
printer.print "^CF0,30,25
printer.print "^FO260,155
printer.print "^FD^FS
printer.print "^FT20,158^BQA,2,4
printer.print "^FDLA,MyCode R 1 1^FS
printer.print "^PQ1,0,1,Y
printer.print "^XZ"
但此代码不起作用(在EZPL中(:
printer.print "^Q25,4"
printer.print "^W50"
printer.print "^H10"
printer.print "^P1"
printer.print "^S2"
printer.print "^AD"
printer.print "^C1"
printer.print "^R0"
printer.print "~Q+0"
printer.print "^O0"
printer.print "^D0"
printer.print "^E35"
printer.print "~R200"
printer.print "^L"
printer.print "W30 , 34, 5, 2, m, 8, 5, 7, 0"
printer.print "MyCode"
printer.print "E"
有人知道我如何向打印机发送EZPL命令吗?非常感谢
您首先需要检查打印机是否支持EPL(很可能是(,然后您应该将打印机配置为使用EPL语言。你可以通过从打印机获取allcv报告来做到这一点,然后你必须查看";设备语言";属性,查看当前设置的语言以及支持的语言。如果您需要将打印机转换为EPL,请查看此处如果这些都不起作用,我会仔细检查代码以确保它是正确的,一旦EPL打印机在打印机列表中可见,你就可以使用zebradesigner创建一个示例标签,选择EPL打印机并使用打印到文件选项来获得正确的代码来测试