16
Tips & Tricks / Printing to a Zebra Printer from AdvancedHMI
« on: September 30, 2018, 05:42:21 AM »
Attached are some code bits from a project I did to print to a Zebra printer. I used Zebra Designer software to create a label, then exported it to a "prn" file. Within the label, I specified variable fields by closing them in brackets. The code would look for those fields and substitute it with the data.
The code does use native methods so it will only work on Windows. It sends information to the printer that has been installed using the Zebra printer driver.
The code does use native methods so it will only work on Windows. It sends information to the printer that has been installed using the Zebra printer driver.