VB.NET Intelligent Mail Generator Data Encoding Tutorial
sample source code to input valid data and generate linear Intelligent Mail images in VB.NET
Setup Intelligent Mail VB.NET Generator
Intelligent Mail, also known as IM, the 4-State Customer Barcode, is a postal barcode adopted by the United State Postal Servicr for sorting and tracking letters and flats.
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 Intelligent Mail barcode size and image in Barcode Generator Control on VB.NET:
Intelligent Mail 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 Intelligent Mail VB.NET Generator is needed:
Dim intelligentmail As OnBarcode.Barcode.Linear
intelligentmail = New OnBarcode.Barcode.Linear
intelligentmail.Type = OnBarcode.Barcode.BarcodeType.INTELLIGENTMAIL
Select Data for Intelligent Mail VB.NET Generator
There are three code sets of Intelligent Mail. They are code set A, code set B, and code set C. Intelligent Mail in different code set encodes different types of data character.
Generate Intelligent Mail with Numeric Character
Intelligent Mail is capable of encoding number 0 to 9.
Sample Usage:
Dim intelligentmail As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear
intelligentmail.Type = OnBarcode.Barcode.BarcodeType.INTELLIGENTMAIL
intelligentmail.Data = "123"
Valid length for Data in Intelligent Mail VB.NET Generator
Intelligent Mail Data Length
Intelligent Mail is variable length symbology, which easily encodes data at any length.
Data Length in Intelligent Mail VB.NET Generator
The value of property Data, which is used to define the data in Intelligent Mail, is a string value. You can input data at any length in the string.
Sample Usage:
Dim intelligentmail As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear
intelligentmail.Type = OnBarcode.Barcode.BarcodeType.INTELLIGENTMAIL
intelligentmail.Data = "1"
Sample Usage:
Dim intelligentmail As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear
intelligentmail.Type = OnBarcode.Barcode.BarcodeType.INTELLIGENTMAIL
intelligentmail.Data = "12345678"