Home
ezBarcode Component WinForm Prev Page Prev Page
ezBarcodeComponent Winform
Getting Started
Setup ezBarcodeComponent
Examples
Trial and Redistributables
FAQ
ezBarcodeComponent Symbologies
CodaBar
Code11
Code128
Code39
Code39Ext
Code93
Code93Ext
Ean13
Ean8
Industrial 2 of 5
Interleaved 2 of 5
Ucc/Ean 128
MSI
Postnet
Planet
Telepen
Upc A
Upc E
IntelligentMail
Sscc18
Scc14
Itf 14
PDF 417
Macro PDF 17
DataMatrix
QR Code
ezBarcodeComponent.Winform Reference
Barcode Class
Barcode Members
Barcode Constructor
Properties
AutoFitControlToBarcode Property
BackColor Property
BarHeight Property
BearerBarHorizontalWidth Property
BearerBarVerticalWidth Property
Caption Property
CaptionAlignment Property
CaptionColor Property
CaptionFont Property
CaptionPosition Property
CaptionSpace Property
CharacterGrouping Property
CheckCharacter Property
CheckCharacterInText Property
CODABARStartChar Property
CODABARStopChar Property
Code128Set Property
CodeData Property
DataMatrixBarSize Property
DataMatrixEncodingMode Property
DataMatrixPreferredFormat Property
Font Property
ForeColor Property
HumanReadableTextFontColor Property
HumanReadableTextPosition Property
IsHumanReadableTextOnTop Property
LeftMargin Property
MacroPdf417FileId Property
MacroPdf417SegmentCount Property
MacroPdf417SegmentIndex Property
NarrowToWideRatio Property
PDF417BarWidth Property
PDF417Columns Property
PDF417CompactionType Property
PDF417ErrorCorrectionLevel Property
PDF417Rows Property
PDF417Truncated Property
PDF417YtoXRatio Property
Picture Property
PostnetHeightShort Property
PostnetHeightTall Property
PostnetSpacing Property
QRCodeBarSize Property
QRCodeEncoding Property
QRCodeErrorCorrectionLevel Property
QRCodeVersion Property
Resolution Property
RotationAngle Property
ShowHumanReadableText Property
SupplementarySeparation Property
Symbology Property
TopMargin Property
UPCESystem Property
UseCaret Property
XDimension Property
Methods
Dispose Method
OnPaint Method
DrawOnGraphics Method
SaveImageAs Method
CaptionPosition Enumeration
Code128 Enumeration
DataMatrixEncodingModes Enumeration
DataMatrixPreferredFormats Enumeration
PDF417CompactionMode Enumeration
PDF417ErrorCorrection Enumeration
QRCodeEncoding Enumeration
QRCodeErrorCorrectionLevel Enumeration
QRCodeVersion Enumeration
RotationAngles Enumeration
Symbologies Enumeration
ezBarcodeComponent Help

CodaBar Specification



Codabar is a linear barcode symbology developed in 1972 by Pitney Bowes Corp. It is also known as Codeabar, Ames Code, NW-7, Monarch, Code 2 of 7, Rationalized Codabar, ANSI/AIM BC3-1995 or USD-4.

Encoding
Codabar can encode the digits 0 through 9, six symbols (-:.$/+), and the start/stop characters A, B, C, D, E, *, N, or T. The start/stop characters must be used in matching pairs and may not appear elsewhere in the barcode. Codabar is used in libraries, blood banks, the overnight package delivery industry, and a variety of other information processing applications.

Each character is comprised of 7 binary identifiers (4 bars and 3 spaces). Each identifier or element is made up of a certain multiple of constant-width modules. Different specifications allow for different width modules, the smallest being 0.0065 inches, allowing 11 characters per inch to be encoded. Logical 0s and 1s are represented by narrow and wide elements respectively.

Codabar Character Set
The numbers in the table correspond to the width of the element. A 0 means the element is narrow, and a 1 means the element is wide.

Data    B  S  B  S  B  S  B   Value

  0     0  0  0  0  0  1  1     0

  1     0  0  0  0  1  1  0     1

  2     0  0  0  1  0  0  1     2

  3     1  1  0  0  0  0  0     3

  4     0  0  1  0  0  1  0     4

  5     1  0  0  0  0  1  0     5

  6     0  1  0  0  0  0  1     6

  7     0  1  0  0  1  0  0     7

  8     0  1  1  0  0  0  0     8

  9     1  0  0  1  0  0  0     9

  -     0  0  0  1  1  0  0     10

  $     0  0  1  1  0  0  0     11

  :     1  0  0  0  1  0  1     12

  /     1  0  1  0  0  0  1     13

  .     1  0  1  0  1  0  0     14

  +     0  0  1  0  1  0  1     15

  A     0  0  1  1  0  1  0     16

  B     0  1  0  1  0  0  1     17

  C     0  0  0  1  0  1  1     18

  D     0  0  0  1  1  1  0     19




Codabar examples by using ezBarcodeComponent
[C#]
        using ezBarcodeComponent.Winform; 

        //create barcode class
        Barcode barcode1 = new Barcode(); 
                                                                        
        //Specify the CodeData to encode
        barcode1.CodeData = "0123456789";
        //Set the Symbology to Codabar
        barcode1.Symbology = Symbologies.Codabar;

   //Save the image
        barcode1.SaveImageAs("codabar.gif", System.Drawing.Imaging.ImageFormat.Gif);


[Vb.net]
      'create barcode class
        Dim barcode1 As New Barcode
                                                                
        'Specify the CodeData to encode 
        barcode1.CodeData = "0123456789"
        'Set the Symbology to Codabar
 barcode1.Symbology = Symbologies.Codabar

   'Save the image  
        barcode1.SaveImageAs("codabar.gif", System.Drawing.Imaging.ImageFormat.Gif)
                        
Example of Codabar barcode images with default value: CODABARStartChar = "B", CODABARStopChar = "B".