Warm tip: This article is reproduced from stackoverflow.com, please click
zebra-printers zpl

New line in text box in ZPL

发布于 2020-05-10 20:03:02

Note: I think I have tried everything mentioned here New line in Zebra ZPL

As input I get 1-3 paragraphs of text. The paragraphs are so long that I want automatic text wrapping, but I want to force a line break between the paragraphs. The below code is working otherwise but I cannot get the forced line break to work.

Here is my ZPL:

    ^FO30,473,0
    ^A0N,20,24
    ^TBN,500,500
    ^FDSome very long legal text that need to be printed in two languages[line break]Here is the same text in another language^FS

What should I replace [line break] with to force a line break?

Questioner
Mathias Rönnlund
Viewed
76
Mathias Rönnlund 2019-04-19 20:02

I think I got it working by using ^FB instead of ^TB

^FO30,473,0
^A0N,20,24
^FB400,15,0,L
^FDSome very long legal text that need to be printed in two languages\&Here is the same text in another language^FS