When trying to encode data into DataMatrix we came across the following issue:
When using the EDIFACT encoding the last 3 characters
(tested with the advanced barcode reader) are encoded as ASCII.
This can be reproduced using the following code snippet to generate a barcode
Code: Select all
var barcodeWriter = new Vintasoft.Barcode.BarcodeWriter ();
barcodeWriter.Settings.Barcode = Vintasoft.Barcode.BarcodeType.DataMatrix;
barcodeWriter.Settings.ProcessSpecialSymbols = false;
barcodeWriter.Settings.BarsWidthAdjustment = 1.0;
barcodeWriter.Settings.BarsRatio = 1.0;
barcodeWriter.Settings.ValueVisible = false;
barcodeWriter.Settings.Padding = 1;
barcodeWriter.Settings.PrintableValue = null;
barcodeWriter.Settings.ValueGap = 0;
barcodeWriter.Settings.DataMatrixEncodingMode = DataMatrixEncodingMode.EDIFACT;
barcodeWriter.Settings.MinWidth = 2;
barcodeWriter.Settings.Resolution = 60.0;
barcodeWriter.Settings.Value = dataInput;
var outputImage = barcodeWriter.GetBarcodeAsBitmap ();
whereas dataInput was tested with one of the following data inputs
- 110;P;73300000000022'
110;P;PM;LIFE;YAPP;YNEW;73300000000022'
110;P;PM;LIFE;YAPP;YNEW;73300000000022;2300000123'
Code: Select all
№ Type Value HEX
0 C40 *DEMO* 2A 44 45 4D 4F 2A
1 EDIFACT 110;P;PM;LIFE;YAPP;YNEW;73300000000022;2300000 31 31 30 3B 50 3B 50 4D 3B 4C 49 46 45 3B 59 41 50 50 3B 59 4E 45 57 3B 37 33 33 30 30 30 30 30 30 30 30 30 32 32 3B 32 33 30 30 30 30 30
2 ASCII 123 31 32 33
Is there a specific reason for the last 3 characters to be encoded in ASCII, or is this an issue in either the writing or the reading component of the SDK?
Is there a possibility to show the control characters or the codewords of the barcode using the advanced barcode reader?
We would expect the option "Show Non-data Flags" in the "Reader results" tab of the advanced barcode reader to do this,
but this option does not seem to have any effect.
This would be quite usefull, since we are now evaluating which encoding scheme to use for the input data we are expecting of our customers.
kind regards,
Roman