GS1 DataMatrix - variable length type - square brackets

Stimulsoft Reports.NET discussion
Post Reply
stimitsn
Posts: 2
Joined: Wed Mar 13, 2024 2:58 pm

GS1 DataMatrix - variable length type - square brackets

Post by stimitsn »

Hello everyone,

I need a GS1 DataMatrix code that contains several data fields with variable lengths.

For example: (01)GTIN(241)CUST. PART NO.(15)BEST BEFORE Date(10)BATCH

The problem is that the (241)CUST. PART NO. has a variable length. An escape sequence is required for this (https://www.tec-it.com/en/support/knowb ... fault.aspx).

How can I insert an escape sequence into the Stimulsoft report?

Second question: If I insert a DataMatrix code into the report, some square brackets are also inserted. What is the function of these brackets?

For example: [21]012345[3103]000123

I look forward to your quick reply. Samuel
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: GS1 DataMatrix - variable length type - square brackets

Post by Lech Kulikowski »

Hello,

> I need a GS1 DataMatrix code that contains several data fields with variable lengths.
> For example: (01)GTIN(241)CUST. PART NO.(15)BEST BEFORE Date(10)BATCH
> The problem is that the (241)CUST. PART NO. has a variable length. An escape sequence is required for this (https://www.tec-it.com/en/support/knowb ... fault.aspx).
> How can I insert an escape sequence into the Stimulsoft report?

If you use a regular DataMatrix, you must insert additional codes (~FNC1). Then the string will look like this:
~FNC101012345678901281721022110ABCD1234~FNC1217654

but our GS1-DataMatrix barcode is specifically made to simplify data entry. All you have to do is write:
(01)01234567890128(17)210221(10)ABCD1234(21)7654
i.e. Application Identifier (AI) is written in brackets, Value after brackets.
The table you specified is already inside our code, and the necessary control codes are substituted automatically for AI with variable length.


> Second question: If I insert a DataMatrix code into the report, some square brackets are also inserted. What is the function of these brackets?
> For example: [21]012345[3103]000123

обычно в human-readable представлении Application Identifier (AI) записывается в скобках, Value после скобок.
первоначально у нас использовались только круглые скобки.
но потом оказалось, что круглые скобки могут быть и внутри данных.
поэтому сейчас для выделения AI используются квадратные скобки.

usually in human-readable view Application Identifier (AI) is written in brackets, Value after brackets.
Originally we used only round brackets. But then it turned out that round brackets can also be inside the data.
So now we use square brackets to select AI.

Thank you.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: GS1 DataMatrix - variable length type - square brackets

Post by Lech Kulikowski »

Hello,

> I need a GS1 DataMatrix code that contains several data fields with variable lengths.
> For example: (01)GTIN(241)CUST. PART NO.(15)BEST BEFORE Date(10)BATCH
> The problem is that the (241)CUST. PART NO. has a variable length. An escape sequence is required for this (https://www.tec-it.com/en/support/knowb ... fault.aspx).
> How can I insert an escape sequence into the Stimulsoft report?

If you use a regular DataMatrix, you must insert additional codes (~FNC1). Then the string will look like this:
~FNC101012345678901281721022110ABCD1234~FNC1217654

but our GS1-DataMatrix barcode is specifically made to simplify data entry. All you have to do is write:
(01)01234567890128(17)210221(10)ABCD1234(21)7654
i.e. Application Identifier (AI) is written in brackets, Value after brackets.
The table you specified is already inside our code, and the necessary control codes are substituted automatically for AI with variable length.


> Second question: If I insert a DataMatrix code into the report, some square brackets are also inserted. What is the function of these brackets?
> For example: [21]012345[3103]000123

usually in human-readable view Application Identifier (AI) is written in brackets, Value after brackets.
Originally we used only round brackets. But then it turned out that round brackets can also be inside the data.
So now we use square brackets to select AI.

Thank you.
stimitsn
Posts: 2
Joined: Wed Mar 13, 2024 2:58 pm

Re: GS1 DataMatrix - variable length type - square brackets

Post by stimitsn »

Thank you for your feedback. The answer with square brackets solved our problem.
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: GS1 DataMatrix - variable length type - square brackets

Post by Max Shamanov »

Hello,

You are Welcome!
Post Reply