Human Readable Interpretation (HRI)

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
Teos
Newcomer
Posts: 4
Joined: Fri Jan 25, 2019 4:42 pm

Human Readable Interpretation (HRI)

Post by Teos » Fri Jan 25, 2019 4:52 pm

Hi,
Is it possible in Nicelabel software to have a GS1 DataMatrix with HRI (Human Readable Interpretation) under it like in linear GS1 128 ?
Thank you

User avatar
Mytch
NiceLabel Support
NiceLabel Support
Posts: 90
Joined: Fri Jul 13, 2018 10:26 pm
Location: Milwaukee, Wisconsin
Contact:

Re: Human Readable Interpretation (HRI)

Post by Mytch » Fri Jan 25, 2019 6:25 pm

Teos,

Yes - this is definitely possible. When a GS1-128 Data Matrix barcode is created, a GS1-128 Function is automatically created by the software and set as the Data Source of the barcode object. You can then link the same Function to a text object and display it on the label. See the screenshot below:
1.jpg
1.jpg (120.22 KiB) Viewed 4791 times
Regards,
Mytch

Teos
Newcomer
Posts: 4
Joined: Fri Jan 25, 2019 4:42 pm

Re: Human Readable Interpretation (HRI)

Post by Teos » Fri Jan 25, 2019 9:20 pm

Thank you.
And to have easch element in a separate line (see below)?
Sans titre.png
Sans titre.png (17.5 KiB) Viewed 4786 times

User avatar
Mytch
NiceLabel Support
NiceLabel Support
Posts: 90
Joined: Fri Jul 13, 2018 10:26 pm
Location: Milwaukee, Wisconsin
Contact:

Re: Human Readable Interpretation (HRI)

Post by Mytch » Fri Jan 25, 2019 9:40 pm

Teos,

You must script this functionality:

Code: Select all

Dim a
a = Replace([GS-128 Data],"(",vbcrlf & "(")
result = Right(a, Len(a)-2)
We have a pre-loaded sample with NiceLabel 2019 here:
C:\Users\Public\Documents\NiceLabel 2019\Designer\Pro\Samples\Lifescience\UDI\UDI-GS1-Datamatrix.nlbl

Regards,
Mytch

Teos
Newcomer
Posts: 4
Joined: Fri Jan 25, 2019 4:42 pm

Re: Human Readable Interpretation (HRI)

Post by Teos » Fri Jan 25, 2019 10:40 pm

Thank's Mytch,

It's ok with this line 3: "result = Right(a, Len(a))" without -2
with "-2" I have Error code 5, Argument or incorrect precedure call: 'Right'

Regards
Teos

User avatar
Mytch
NiceLabel Support
NiceLabel Support
Posts: 90
Joined: Fri Jul 13, 2018 10:26 pm
Location: Milwaukee, Wisconsin
Contact:

Re: Human Readable Interpretation (HRI)

Post by Mytch » Fri Jan 25, 2019 11:06 pm

Teos,

You must give your GS1-128 function a valid value first and ensure the proper data source is being called in the VBScript. The provided sample code uses [GS1-128 Data], but the default function is usually named as just [GS1128].

Dim a
a = Replace([GS1128],"(",vbcrlf & "(")
result = Right(a, Len(a)-2)

This must be set to the proper data source as it exists on your label. It must also already have a value that is not blank (configured with proper application identifiers). Please let us know if you have further questions or concerns.

Teos
Newcomer
Posts: 4
Joined: Fri Jan 25, 2019 4:42 pm

Re: Human Readable Interpretation (HRI)

Post by Teos » Mon Jan 28, 2019 10:53 am

Mytch,

Thank you, it's working well.
The only thing I wanted to say is that I have a synthax error when I put (-2) that doesn't affect the result.
This one is perfect
Dim a
a = Replace([GS1128],"(",vbcrlf & "(")
result = Right(a, Len(a))
See added files
Attachments
1.jpg
1.jpg (72.53 KiB) Viewed 4770 times
2.jpg
2.jpg (89.45 KiB) Viewed 4770 times

BioBio2019
Newcomer
Posts: 4
Joined: Wed Jul 03, 2019 3:07 pm

Re: Human Readable Interpretation (HRI)

Post by BioBio2019 » Wed Jul 03, 2019 5:09 pm

Hello,
Is it possible to have the same information but in 2 lines?
(01)xxxxxxxxxxxxxxx
(17)xxxxxx(10xxxxxx)

Thank you,
Sophie

User avatar
Mytch
NiceLabel Support
NiceLabel Support
Posts: 90
Joined: Fri Jul 13, 2018 10:26 pm
Location: Milwaukee, Wisconsin
Contact:

Re: Human Readable Interpretation (HRI)

Post by Mytch » Wed Jul 03, 2019 7:35 pm

BioBio2019 wrote:
Wed Jul 03, 2019 5:09 pm
Hello,
Is it possible to have the same information but in 2 lines?
(01)xxxxxxxxxxxxxxx
(17)xxxxxx(10xxxxxx)

Thank you,
Sophie
Sophie,

You can use a slightly modified version of the provided script:

Code: Select all

Dim a
a = Replace([GS-128 Data],"(",vbcrlf & "(",1,2)
result = Right(a, Len(a)-2)
Please let me know if this does not work in your case.

Thanks,
Mytch

BioBio2019
Newcomer
Posts: 4
Joined: Wed Jul 03, 2019 3:07 pm

Re: Human Readable Interpretation (HRI)

Post by BioBio2019 » Wed Jul 17, 2019 10:24 am

Hi Mytch,
Thank you! It works perfectly!
KR,
Sophie

Post Reply