How do I put new line characters for my "Text"? Say for example:
Hello World
will become
Hello
World
Is there anyway that I can put a new line character for my code like this?
^FT78,76^A0N,28,28^FH\^FDHello\nWorld^FS
If the "text" in my label is too long, how would I put another line to it?
Use \&
for new line
^FT78,76^A0N,28,28^FH\^FDHello\&World^FS
I suggest you combine the answers from Thorsten and Dharmesh for maximum effect:
^FB400,2,0,C^FO0,50
^FDHello\&World^FS
Doing so will yield a label that looks like this:
The nice things about this approach are two: First, the text block will position and align the new line appropriately. And second, you have complete control over where the line break actually takes place.
I know this question is pretty old, but I found out that the ^FB
command (Field Block) is actually pretty good at wrapping text:
I used a line like this:
^A0R,54,54^FO505,3424^FB630,2,0,L,0^FDThis is a pretty long line of text^FS
and it got wrapped into two lines nicely. The only thing you need to mind is that wrapping seems to take place at spaces only, not at commas or any other punctuation marks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With