Skip to main content

Notifications

Supply Chain Management forum

Field alignment issues with ZPL label in AX

Posted on by 1,230

hi

anyone else experiencing any issues with zpl label design in ax? specifically fields that are vertical center aligned in zebra designer and appear center aligned when viewed in online zpl viewers, do not print center aligned when printed from AX 365

i thought maybe i have white space issues with address data in ax, but i have checked the fields in the database and all looks fine

any ideas?

  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    anyone ever encounter same issues i am experiencing here?

    i have a simple barcode file as attached

    this prints fine from zebra designer, but from D365 it comes out unaligned?

    IMG_5F00_0149.jpg

    CT~~CD,~CC^~CT~
    ^XA
    ~TA000
    ~JSN
    ^LT0
    ^MNW
    ^MTT
    ^PON
    ^PMN
    ^LH0,0
    ^JMA
    ^PR6,6
    ~SD15
    ^JUS
    ^LRN
    ^CI27
    ^PA0,1,1,0
    ^XZ
    ^XA
    ^MMT
    ^PW1279
    ^LL2078
    ^LS0
    ^BY5,3,236^FT307,1347^BCB,,Y,N
    ^C^FH\^FD>:$ItemId$^FS
    ^BY5,3,236^FT678,1566^BCB,,Y,N
    ^C^FH\^FD>:$LicensePlateId$^FS
    ^PQ1,0,1,Y
    ^XZ

  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    Hi Mav

    i have been designing in zebra designer to produce the zpl code so i have no idea why the C^CH command is not present

    i changed the zpl to below, which again looks fine in zebra designer and zpl online viewers, but when i print from AX, i have the exact same issue

    ^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR6,6~SD15^JUS^LRN^CI0^XZ

    ^XA

    ^MMT

    ^PW1228

    ^LL1772

    ^LS0

    ^BY4,3,236^FT309,1274^BCB,,Y,N

    C^FH\^FD>:$LicensePlateId$^FS

    ^FT730,1137^A0B,67,67,C^FH\^FD$AddressStateIdTo$^FS

    ^FT660,1178^A0B,67,67,C^FH\^FD$AddressZipCodeIdTo$^FS

    ^FT590,1126^A0B,67,67,C^FH\^FD$AddressCityTo$^FS

    ^FT520,1155^A0B,67,67,C^FH\^FD$AddressStreetTo$^FS

    ^FT450,1119^A0B,67,67,C^FH\^FD$AccountName$^FS

    ^PQ1,0,1,Y^XZ

    7345.Photos_2D002D002D002D00_03_2D00_11-09.37.55.png

  • Mav Profile Picture
    Mav on at
    RE: Field alignment issues with ZPL label in AX

    Raff

     

    I dont see you using Center align in your Zpl code.

    Look at code below how I m using C^FH to center allign my text and it print just fine.

    You can also refer to this URL.

    stackoverflow.com/.../zpl-how-to-horizontally-centered-a-line-of-text-on-a-label-regardless-of-text-l

     

    CT~~CD,~CC^~CT~
    ^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR4,4~SD15^JUS^LRN^CI0^XZ
    ^XA
    ^MMT
    ^PW609
    ^LL0406
    ^LS0
    ^BY2,3,110^FT161,386^BCB,,Y,N
    ^FD>:TEST BAR CODE^FS
    ^FT540,364^A0B,56,55^FB337,1,0,C^FH\^FDTestcode10001^FS
    ^FT444,305^A0B,56,55^FB197,1,0,C^FH\^FDTest City^FS
    ^FT354,375^A0B,56,55^FB343,1,0,C^FH\^FD123 Test Street^FS
    ^FT262,351^A0B,56,55^FB292,1,0,C^FH\^FDTest Account^FS
    ^PQ1,0,1,Y^XZ


    Remember to mark verified if resolved.

    C^FH
  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    not sure if i can upload .lbl file?

  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    ^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR6,6~SD15^JUS^LRN^CI0^XZ

    ^XA

    ^MMT

    ^PW1228

    ^LL1772

    ^LS0

    ^BY4,3,236^FT309,1274^BCB,,Y,N

    ^FD>:$LicensePlateId$^FS

    ^FT896,1056^A0B,58,57^FH\^FD$AddressStateIdTo$^FS

    ^FT780,1091^A0B,58,57^FH\^FD$AddressZipCodeIdTo$^FS

    ^FT664,1047^A0B,58,57^FH\^FD$AddressCityTo$^FS

    ^FT549,1072^A0B,58,57^FH\^FD$AddressStreetTo$^FS

    ^FT433,1040^A0B,58,57^FH\^FD$AccountName$^FS

    ^PQ1,0,1,Y^XZ

  • Mav Profile Picture
    Mav on at
    RE: Field alignment issues with ZPL label in AX

    Where is the zpl code  & zebra designer label file?

  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    so you can see first picture is zebra designer, 2nd is an online zpl viewer, 3rd is physical label print with details blurred ou

    you can see its pretty much as mess when vert center aligned

  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    7652.Photos_2D002D002D002D00_03_2D00_06-17.13.19.png7652.Photos_2D002D002D002D00_03_2D00_06-17.13.19.png

  • raff Profile Picture
    raff 1,230 on at
    RE: Field alignment issues with ZPL label in AX

    2727.ZebraDesigner-_2D00_-_5B00_Small-Pick-Label-06032019.lbl_5D002D002D002D002D00_03_2D00_06-17.07.08.png

  • Mav Profile Picture
    Mav on at
    RE: Field alignment issues with ZPL label in AX

    You have to reveal more, share pictures and point out the issue on your pictures.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans