VB.NET Identcode Generator Data Encoding Tutorial
sample source code to input valid data and generate linear Identcode images in VB.NET
Setup Identcode VB.NET Generator
Identcode, also known as German Postal 2 of 5 Identcode, Deutsche Post Identcode Barcode, is a 14-digit bar code of the postal carrier cooperation with information about the recipient.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
OnBarcode.com provides more details about how to set Identcode barcode size and image in Barcode Generator Control on VB.NET:
Identcode 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 Identcode VB.NET Generator is needed:
Dim identcode As OnBarcode.Barcode.Linear
identcode = New OnBarcode.Barcode.Linear
identcode.Type = OnBarcode.Barcode.BarcodeType.IDENTCODE
Select Data for Identcode VB.NET Generator
There are three code sets of Identcode. They are code set A, code set B, and code set C. Identcode in different code set encodes different types of data character.
Generate Identcode with Numeric Character
Identcode is capable of encoding number 0 to 9.
Sample Usage:
Dim identcode As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear
identcode.Type = OnBarcode.Barcode.BarcodeType.IDENTCODE
identcode.Data = "12345678901"
Valid length for Data in Identcode VB.NET Generator
Identcode Data Length
Identcode is fixed length symbology, which encodes data in 12 digits. The last digit of them is the prerequisite check digit.
Data Length in Identcode VB.NET Generator
Identcode VB.NET Generator will automatically generate and calculate the check digit in Identcode basing on the string value you give to property Data. That is to say, using Identcode VB.NET Generator, you only have to place 11 digits of numeric characters in the string value of Data.
Sample Usage:
Dim identcode As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear
identcode.Type = OnBarcode.Barcode.BarcodeType.IDENTCODE
identcode.Data = "12345678901"