Hi,
I'm a new user of Spire barcode. I'm presently using the free edition and generating EAN14 barcodes using the code snippet below, which was copied and adapted from the Spire web site.
Whenever I generate an EAN14 code, the check digit is always missing in the text at the foot of the barcode. For example, using barcode digits of "1234567890123", Spire barcode generates the attached image, which does not display a check digit.
I know that sequence of digits is of the correct length and can generate EAN14 barcodes correctly with a check digit, because entering the same digits at the online check digit service GS1 returns a correct sequence of 14 digits. That service shows a check digit of "1" should be displayed for the digits "1234567890123", but Spire does not do that.
What do I need to do to create an EAN14 code which displays a check digit in the text at the foot of printed barcode?
Mike
Here is the code snippet taken from the Spire web site:
string productBarCode = "1234567890123";
BarcodeSettings settings = new BarcodeSettings();
settings.Type = BarCodeType.EAN14;
settings.Data = productBarCode;
settings.UseChecksum = CheckSumMode.ForceEnable;
settings.ShowCheckSumChar = true;
settings.ShowTextOnBottom = true;
settings.TextAlignment = System.Drawing.StringAlignment.Center;
BarCodeGenerator generator = new BarCodeGenerator(settings);
System.Drawing.Image image = generator.GenerateImage();