2 Replies Latest reply on Nov 9, 2017 1:43 PM by Srikanth Reddy

    Formatting multi-line text

    Srikanth Reddy

      Hi,

      I am trying to print a label but the new line char "\&" doesn't seem to be working in my zpl code.

      I am not sure what I am missing

      Any help is appreciated.

       

      CT~~CD,~CC^~CT~

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

      ^XA

      ^MMT

      ^PW812

      ^LL1015

      ^LS0

      ^FT640,761^A0B,34,33^FH\^FDCustomer PO #:^FS

      ^FT740,761^A0B,34,33^FH\^FDOrder #:^FS

      ^FT740,446^A0B,34,33^FH\^FD999999^FS

      ^FT640,446^A0B,34,33^FH\^FDTAS TEST^FS

      ^FT308,707^A0B,39,38^FH\^FD1234 TEST ST\&SUITE# 567\&LOS ANGELES,CA 90045^FS

      ^PQ1,0,1,Y^XZ

       

      Thanks & regards

        • Re: Formatting multi-line text
          Robin West

          Hi Srikanth, You have to use a multi-line ZPL command (^FB or ^TB) to show multiple lines of text with one data field:

           

          CT~~CD,~CC^~CT~

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

          ^XA

          ^MMT

          ^PW812

          ^LL1015

          ^LS0

          ^FT640,761^A0B,34,33^FH\^FDCustomer PO #:^FS

          ^FT740,761^A0B,34,33^FH\^FDOrder #:^FS

          ^FT740,446^A0B,34,33^FH\^FD999999^FS

          ^FT640,446^A0B,34,33^FH\^FDTAS TEST^FS

          ^FT308,707^FB490,4,^A0B,39,38^FH\^FD1234 TEST ST\&SUITE# 567\&LOS ANGELES,CA 90045^FS

          ^PQ1,0,1,Y^XZ