KA.Barcode for .NET Suite
Guide for Encoding Numeric-only Data in Code 2 of 5
Complete VB.NET source code to generate, print Code 2 of 5 images using Barcode Generator for .NET Suite
Code 2 of 5 Character Set and Data Length in VB.NET Generator

Code 2 of 5 Generation Control in VB.NET is a mature, reliable Code 2 of 5 barcode generator library (DLL Class Library) used world-wide. It enables and helps customers to encode valid Code 2 of 5 barcodes with correct data character and suitable data length.

In addition to Code 2 of 5 data encoding infomation, its size and image settings are offered by KeepAutomation as well.

Code 2 of 5 Data Character Encoding in VB.NET

In general, Code 2 of 5 is able to encode numeric data only.

Code 2 of 5 Data Length Adjustment in VB.NET

Code 2 of 5 is variable-length, so users are free to encode and make Code 2 of 5 barcodes at any length using our VB.NET Code 2 of 5 Barcode Control.

Code 2 of 5 Data Encoding in C#.NET, Microsoft Excel and Word

C#.NET Code 2 of 5 Barcode Library - Code 2 of 5 Data Encoding in C#.NET

Excel Code 2 of 5 Barcode Add-In - Code 2 of 5 Data Encoding in Microsoft Excel

Word Code 2 of 5 Barcode Add-In - Code 2 of 5 Data Encoding in Microsoft Word

Code 2 of 5 Data Encoding in VB.NET - Detail Explanation

To achieve correct, efficient Code 2 of 5 data encoding, users are supposed to do the following things:
  1. Download KeepAutomation VB.NET Code 2 of 5 Generation Control.

  2. Create your VB.NET project in Microsoft Visual Studio, and then integrate the component (DLL Class Library) into your target Visual Basic .NET project (see detail installation guide).

  3. Now, you can begin to encode Code 2 of 5 barcodes with the help of following data encoding explanations. Note that, Code 2 of 5 is a variable-length barcode and its barcode length will be changed by the number of encoded data.

Example 1: Encode six digits

Dim barcode As KeepAutomation.Barcode.Bean.BarCode

barcode = New KeepAutomation.Barcode.Bean.BarCode()

barcode.Symbology = KeepAutomation.Barcode.Symbology.Code2of5

barcode.CodeToEncode = "252525"

barcode.generateBarcodeToImageFile("C://code25-1-vb-net.jpg")



Example 2: Encode ten digits

Dim barcode As KeepAutomation.Barcode.Bean.BarCode

barcode = New KeepAutomation.Barcode.Bean.BarCode()

barcode.Symbology = KeepAutomation.Barcode.Symbology.Code2of5

barcode.CodeToEncode = "2525258686"

barcode.generateBarcodeToImageFile("C://code25-2-vb-net. jpg")