Need advise to fill in text value from right to left

Issues related to label design (working with databases, data processing, RFID encoding etc.) and printing (from NiceLabel Express, NiceLabel Pro, NiceForm and NicePrint)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
Michael P
Newcomer
Posts: 2
Joined: Fri Jan 10, 2020 11:49 am

Need advise to fill in text value from right to left

Post by Michael P » Fri Jan 10, 2020 12:08 pm

Hi All,

I am facing some difficulties with one of my labels.
We have received a request to create a label where the value has to be filled in a border area.
This is a recognition pattern for a specific device .

I have created the design.( see attached).
I had to use the "mask" feature to have each character centered correctly in the border.
This design works fine when the max character (3) are filled in.

But one of the requirement is when there is only 1 character.
It should fill the right border first. if i only use 1 character it will fill the left one.
Is there any ways to have text start filling from right to left ?

I tried to put leading "0" as a workaround, but this was rejected. it should only show the requested values

Maybe someone had to make a similar project and found a solution to this ?
Any help is appreciated, thanks in advance.
Attachments
label borders.PNG
label borders.PNG (21.91 KiB) Viewed 2820 times

User avatar
Saso
NiceLabel
NiceLabel
Posts: 2984
Joined: Mon Sep 04, 2006 8:09 am
Contact:

Re: Need advise to fill in text value from right to left

Post by Saso » Fri Jan 10, 2020 12:54 pm

If you would not use "mask" feature, a quick solution would be setting the Text object's anchoring point to top-right. This forces the Text object to resize to left side.
screenshot.png
screenshot.png (15.65 KiB) Viewed 2814 times
Unfortunately, the "mask" feature cannot be configured to work from right to left. So this will not work.

A workaround can be breaking the 3-digit value into individual digits and linking them with individial Text objects. I used Python script to break the value apart into digits.
screenshot1.png
screenshot1.png (13.55 KiB) Viewed 2814 times
See the attached sample label.
Attachments
sample.nlbl
(6.04 KiB) Downloaded 75 times
Saso Fleiser
Senior Technical Product Specialist

Michael P
Newcomer
Posts: 2
Joined: Fri Jan 10, 2020 11:49 am

Re: Need advise to fill in text value from right to left

Post by Michael P » Mon Jan 13, 2020 7:40 am

Thanks for the feedback.
This is exactly what I was looking for, I will give it a try.

Post Reply