Sample code for printing barcode labels on Zebra printers using ZPL II

3,880 views
Skip to first unread message

MegaSadq

unread,
Feb 9, 2016, 8:23:24 PM2/9/16
to Pick and MultiValue Databases
G'Day

I've done this in a previous life, but being a lazy sod, wondered if anybody had any recent examples of the basic code (any flavour) to initiate this from a MV platform to save me looking through the ZPL II programming manual.

Thanks in advance

geneb

unread,
Feb 10, 2016, 8:22:54 AM2/10/16
to Pick and MultiValue Databases
What are you trying to do? I've got a lot of experience printing to Z4Ms
through D3. :)

g.

--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby. Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!

Ross Ferris

unread,
Feb 11, 2016, 9:16:55 PM2/11/16
to Pick and MultiValue Databases
Look at the manual, or pay someone else - at some stage you will need to refer to manual to get layout for whatever you are trying to achieve "right" from pure basic code (which is why I use Visage.Reporter for this sort of thing so I can just use a WYSIWYG stag drag & drop interface to design tickets or whatever & then fire off production with a single execute statement from D3)

Adam Dompier

unread,
Feb 16, 2016, 1:17:56 PM2/16/16
to Pick and MultiValue Databases
      for i = 1 to no.lb
        ypos = 10
        print "^XA"
        for ii = 1 to 5
          print "^FO10,":ypos:"^ADN,36,20^FD":TEMP.REC<i,ii>:"^FS"
          ypos += 50
        next ii
        print "^XZ"
      next i


The code above loops through TEMP.REC and prints 5 lines of data per label. ^XA is beginning of label, ^XZ is end of label. ^FO{x,y,z} is field origin, it sets the position on the label and optional justification. ^A selects your font. ^FD to ^FS defines the string to print.
Reply all
Reply to author
Forward
0 new messages