This is a migrated thread and some comments may be shown as answers.

Datamatrix Barcode String Control Characters

1 Answer 501 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
Mi
Top achievements
Rank 1
Mi asked on 27 Mar 2021, 06:03 PM

In many other Datamatrix controls the tilde character is used to recognize special characters like FNC1 for GS1-Datamatrix. The documentation is very scarce. https://docs.telerik.com/devtools/winforms/controls/barcode/barcode-types/2d-barcodes/datamatrix/overview

 

Is there support for control characters? 

How can I represent <RS> (record separator), <GS> (group separator) and <EOT> (end of text) in the Datamatrix string?

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 31 Mar 2021, 08:51 AM

Hello, Mi, 

DataMatrix barcode from the Telerik UI for WinForms suite doesn't perform any internal processing of the assigned Value. Only FNC1 will be inserted by the Encodation.

Hence, if you want to add any control characters, you can embed it directly into the Value:

            Telerik.WinControls.UI.Barcode.Symbology.DataMatrix encoder = new DataMatrix();
            encoder.Encodation = Telerik.WinControls.UI.Barcode.Symbology.Encodation.AsciiGS1; 
            encoder.Encoding = Encoding.ASCII;
            this.radBarcode1.Symbology = encoder;
            this.radBarcode1.Value = "0120110614141543219\x001d103456789213456789012"; // \x001d <=> <GS>

You can find the ASCII characters in the specification here (page 48): https://www.gs1.org/docs/barcodes/GS1_DataMatrix_Guideline.pdf 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Barcode
Asked by
Mi
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or