In other words, the human readable part should look something like this:
(01)12135465984563(10)00021
while a scan of the barcode should return this:
01121354659845631000021
If we omit the parentheses from the data string as in the following code, the component erroneously returns the human readable code without the parentheses:
- Code: Select all
BarcodeSettings barsetting = new BarcodeSettings();
barsetting.Type = BarCodeType.Code128;
barsetting.Data = "01121354659845631000021";
BarCodeGenerator bargenerator = new BarCodeGenerator(barsetting);
Image barcodeimage = bargenerator.GenerateImage();
If we go the other way and place the parentheses in the data string, the parentheses are erroneously encoded in the barcode:
Barcodes generated using the following code erroneously returns the human readable code without the parentheses:
- Code: Select all
BarcodeSettings barsetting = new BarcodeSettings();
barsetting.Type = BarCodeType.Code128;
barsetting.Data = "(01)12135465984563(10)00021";
BarCodeGenerator bargenerator = new BarCodeGenerator(barsetting);
Image barcodeimage = bargenerator.GenerateImage();
Is there any way to get the barcode to encode the numbers without the parentheses while showing the parentheses in the human readable code?