Here is typical ZPL code for a label without use of SAPScript. Note the other example uses field numbers (^FN) to tie the data with field placeholders in the SAPScript. Device type is usually LB_ZEB, unless you need to support CJK characters, then just use ASCIIPRI. ASCIIPRI will usually work except some graphics will get messed up if codepage 850 isn't used (LB_ZB is 850). This example has no graphics.
concatenate '^FV' ctl-desc01 '^FS' into w_string. write: / '^XA^PON^MMT'. perform ut_write_offset_as_required. write:
/ '^FO0,0^GB609,406,2,2^FS', / '^FO35,043^A0N,39,39' no-gap, zfs-matnr, / '^FO35,083^BY2,2.4,40^B3N,65,N,N,N' no-gap, zfs-matnr, / '^FO35,134^A0N,28,28^FDNOKIA CODE', ctl-desc01, '^FS', / '^FO35,164^BY2,3,40^B3N,65,N,N,N' no-gap, w_string, / '^FO35,214^A0N,28,28^FDNOKIA TYPE', ctl-kdmat, '^FS', / '^FO35,244^B3N,65,N,N,N' no-gap, zfs-kdmat, / '^FO35,294^A0N,28,28^FDSerial No.^FS', / '^FO235,294^A0N,28,28' no-gap, ser-serial_sole, / '^FO35,324^B3N,65,N,N,N' no-gap, ser-serial_sole, / '^FO00,374^A0N,20,20^FB609,1,,C^FD', ctl-datecode_ppppmmmyy, '^FS', / '^FO010,374^A0N,16^FD', ldef-abbrev, '^FS'.
perform wrt_pq_number_of_copies using ctl-curr_lblcnt. "^PQ ZPL Programming manual is available at zebra.com |