How to generate Function 1 Symbol Character (FNC1) for GS1 DataMatrix?

Smith
Smith
2890 Points
78 Posts

I'm trying to generate GS1 data matrix code using https://zxing.net. I'm facing issue to generate separator and starting code. 

I'm referring to doc: https://www.gs1.org/docs/barcodes/GS1_DataMatrix_Guideline.pdf

var writer = new ZXing.BarcodeWriterPixelData
            {
                Format = ZXing.BarcodeFormat.DATA_MATRIX
            };
var data = writer.Write(string.Concat("<GS>","01", "56542352456548", "10","dsde542s", "<GS>", "11", "220203"));

<GS> need to replace with The FNC1 (codeword 232) as in doc:

Views: 2901
Total Answered: 1
Total Marked As Answer: 1
Posted On: 21-Jul-2021 02:32

Share:   fb twitter linkedin
Answers
Rahul Maurya
Rahul M...
4916 Points
27 Posts
         

Use Unicode Character 'INFORMATION SEPARATOR THREE' (U+001D). This character is commonly used as INFORMATION SEPARATOR THREE and group separator (GS).

So, your code look like:

var writer = new ZXing.BarcodeWriterPixelData
            {
                Format = ZXing.BarcodeFormat.DATA_MATRIX
            };
var data = writer.Write(string.Concat("\u001d","01", "56542352456548", "10","dsde542s", "\u001d", "11", "220203
Posted On: 26-Jul-2021 01:03
Thanks. Worked for me.
 - Smith  26-Jul-2021 22:57
 Log In to Chat