Dim Barcode As New UltraInterleaved2Of5Barcode() Barcode.Data = "543212" Barcode.ShouldGenerateChecksum = True
The Interleaved 2 Of 5 barcode is a high-density numeric barcode symbology. It encodes only an even number of digits, as 0 is added at the beginning if an odd number is entered. A checksum can be generated by setting the UltraInterleaved2Of5Barcode™ control property ShouldGenerateChecksum to True.
Note that the checksum is not part of the Data value property.
In Visual Basic:
Dim Barcode As New UltraInterleaved2Of5Barcode() Barcode.Data = "543212" Barcode.ShouldGenerateChecksum = True
In C#:
UltraInterleaved2Of5Barcode Barcode = new UltraInterleaved2Of5Barcode(); Barcode.Data = "543212"; Barcode.ShouldGenerateChecksum = true;