VB.NET Codabar Generator Data Encoding Tutorial

sample source code to input valid data and generate linear Codabar images in VB.NET


 

Setup Codabar VB.NET Generator

Codabar, known as Codeabar, Ames Code, Monarch, Code 2 of 7, Rationalized Codabar, ANSI/AIM BC3-1995 or USD-4, is a discrete, self-checking linear barcode symbology.

OnBarcode.com provides more details about how to set Codabar barcode size and image in Barcode Generator Control on VB.NET:


Codabar VB.NET Generator installation

1. Download the trial package and unzip

2. Copy OnBarcode.Barcode.WinForms.dll to your .NET project folder

3. Do not copy dll to .NET bin directory, .NET build tools will do it for you.

4. Add OnBarcode.Barcode.WinForms.dll to .NET project reference

5. Right click .NET Visual Studio Toolbox, select menu Choose Items...

6. In "Choose Toolbox Items" form, click button "Browse...", and select OnBarcode.Barcode.WinForms.dll

7. After selection, you will find four items under "Components" section: LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm

After, get it ready in VB.NET by placing the following statement where Codabar VB.NET Generator is needed:

Dim codabar As OnBarcode.Barcode.Linear

codabar = New OnBarcode.Barcode.Linear

codabar.Type = OnBarcode.Barcode.BarcodeType.CODABAR

 

Select Data for Codabar VB.NET Generator

There are three code sets of Codabar. They are code set A, code set B, and code set C. Codabar in different code set encodes different types of data character.

Generate Codabar with Numeric Character

Codabar is capable of encoding number 0 to 9.

Sample Usage:

Dim codabar As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

codabar.Type = OnBarcode.Barcode.BarcodeType.CODABAR

codabar.Data = "123"

Make Codabar using using Punctuations

Codabar encodes - (Dash), $ (Dollar), : (Colon), / (Slash), . (Point), and + (Plus).

Sample Usage:

Dim codabar As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

codabar.Type = OnBarcode.Barcode.BarcodeType.CODABAR

codabar.Data = "+-"

 

Valid length for Data in Codabar VB.NET Generator

Codabar Data Length

Codabar is variable length symbology, which easily encodes data at any length.

Data Length in Codabar VB.NET Generator

The value of property Data, which is used to define the data in Codabar, is a string value. You can input data at any length in the string.

Sample Usage:

Dim codabar As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

codabar.Type = OnBarcode.Barcode.BarcodeType.CODABAR

codabar.Data = "1"

Sample Usage:

Dim codabar As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

codabar.Type = OnBarcode.Barcode.BarcodeType.CODABAR

codabar.Data = "12345678"









OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.