实际上我需要打印一个.txt文件,在.txt里面我有一个用于打印机Zebra的掩码(.zpl指令(。 当我发送打印文档时,打印机打印代码而不是掩码。 我能做什么?
Visual Studio Community 2019 斑马 ZT410 通过 USB 端口
Private Sub ImprimirQR_Click(sender As Object, e As EventArgs) Handles ImprimirQR.Click
'prueba.Text = "^XA" + vbCrLf + "^FO100,100" + vbCrLf + "^A0, 35,35^FDCODIGO QR^FS" + vbCrLf + "^FO100,200^BQ,2,10" + vbCrLf + "^FDHM,A" + CadenaQR + "^FS" + vbCrLf + "^XZ"
'Try
' ZPrinter.PrintLabel(1, prueba.Text)
'Catch ex As Exception
' MessageBox.Show("Error: " + vbCrLf + ex.ToString)
'End Try
结束子
这是我对同一问题的回答。将字符串发送到打印机
此外,如果您打算发送文件,请改用此命令
RAWPOSPrinter.SendFileToPrinter("<NAME OF PRINTER AS IT APPEARS IN DEVICES AND PRINTERS>", "<FILE NAME OF FILE THAT CONTAINS ZEBRA COMMANDS>")