0

Actually i need to print a .txt file, inside the .txt i have a mask for printers Zebra (.zpl instructions). When i send to print the document, the printer, printing the code and not the mask. What can i do?

Visual Studio Community 2019 Zebra ZT410 by USB port

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

end sub

Delphi Coder
  • 1,723
  • 1
  • 14
  • 25
heymisael
  • 1
  • 1
  • 3

1 Answers1

0

Here is my answer to the same question. Send String to printer

Also if you intend to send a file, use this command instead

RAWPOSPrinter.SendFileToPrinter("<NAME OF PRINTER AS IT APPEARS IN DEVICES AND PRINTERS>", "<FILE NAME OF FILE THAT CONTAINS ZEBRA COMMANDS>")
F0r3v3r-A-N00b
  • 2,903
  • 4
  • 26
  • 36