VintaSoft Barcode .NET SDK Discussions
Questions, comments and suggestions concerning VintaSoft Barcode .NET SDK.
Board index < VintaSoft Barcode < VintaSoft Barcode .NET SDK Discussions
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 ();
в„– 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 33The last value item is in my opinion an unexpected output, since I defined EDIFACT encoding in the code snippet above.
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 ASCII 1 31"12" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 ASCII 12 31 32"123" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 ASCII 123 31 32 33"1234" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 EDIFACT 1 31 2 ASCII 234 32 33 34"12345" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 EDIFACT 12 31 32 2 ASCII 345 33 34 35"123456" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 EDIFACT 123 31 32 33 2 ASCII 456 34 35 36"1234567" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 EDIFACT 1234 31 32 33 34 2 ASCII 567 35 36 37"12345678" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 EDIFACT 12345 31 32 33 34 35 2 ASCII 678 36 37 38"123456789" =>
в„– Type Value HEX 0 C40 *DEMO* 2A 44 45 4D 4F 2A 1 EDIFACT 123456 31 32 33 34 35 36 2 ASCII 789 37 38 39So as you can see, there are always 3 ascii characters as the last 3 characters (if the input is longer than 3 characters)