I am trying to write a small program that prints out barcode labels on a Zebra GK420t thermal printer.
It uses their ZPL II code to send instructions to the printer.
it uses ^XA to start and XZ to end transmission
Here is some code I found but I do not know how to translate it in to Purebasic.
Code: Select all
Data1 = "^XA" & _
"^FO89,20^A0N,25,18 ^FDWaranty void if removed^1,1^FS" & _
"^FO93,45^A0N,24,17^FDGarantie Annule si enleve^1,1^FS" & _
"^FO117,75^AB^FD" & SNum & "^1,1^FS" & _
"^PQ3,0,1,Y^XZ"
Open "LPT1:" For Output As #1
Print #1, Data1
Close #1
Any help would be great.
Cheers
Leo