"smarter" Line Feed
Hello,
I'm using Bartender to print Datamatrix barcodes on labels. The option to print the full text version below the barcode is checked. The format of my content is the following:
1234567-blablabla-bla-bla-01
I would like to know if there is an easy way to tell bartender, if the text length is too long to fit my label width, to not feed the line in the middle of a "bla", but use one of the dashes "-" instead.
For example:
1234567-blablabla-
bla-bla-01
instead of
1234567-blablabla-bl
a-bla-01
Thank you for your help.
-
Hello Gemineo,
If you are applying a GS1 standard to your Data Matrix barcode you can separate each application identifier (AI) on separate lines.
If you are not using GS1, you'll need to customize the human readable text yourself. We offer several tools to do so: character template, search and replace, prefix and suffix. and even VB script.
In your case, you would probably need to apply a VB script, so if the data exceeds a certain number of characters the scripts add a line feed or carriage return to it.
*All the above can be access from the "Human Readable" node of the barcode properties. Note that this features are available only on v10.1 of our software.
Regards.
0 -
Shotaro Ito
★ BarTender Hero ★
Not really paper-width aware, however you can do similar in Ver.10.0 Professional Edition's search and replace transform.
1. Disable human readable of the Datamatrix.
2. Create a paragraph text and get data source from Object Value of the Datamatrix's human readable.
3. In Transform tab, add an Action with..
- Search and insert after
- Regular Expression
- Search for: .{10}[^-]*-
- Insert: <<CR>>
[attachment=1070:RegularExpression.png]
This transform find a - which is after any(including -) of 10 characters, then insert a newline after that.
From Ver10.1, you can perform these human readable transform within Datamatrix, as Fernando say.
0 -
Thank you for the replies.
I'm using 10.0 Automation, so I will implement Shotaro's solution. I would have liked something more paper-width aware indeed, but working on the number of characters is a compromise that is acceptable for me.
I didn't know that we can use regular expression in the transform tab. So, that's a very valuable advice anyway, besides my initial issue.
Thank to both of you again.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare