KA.Barcode for .NET Suite
Guide for Customizing Code 2 of 5 Images in VB.NET
Complete VB.NET source code to generate, print Code 2 of 5 images in different image formats using Barcode for .NET Suite
VB.NET Code 2 of 5 Overview

Code 2 of 5, is also named as two-out-of-five code, 2 of 5 Industrial, 2/5 Industrial, 2 of 5 Standard, Standard 2 of 5, 2/5 Standard Code 2/5, 2 of 5 Barcode.

VB.NET Code 2 of 5 barcode generator provides a comprehensive barcode solution to add Code 2 of 5 generation in .NET programs. It is compatible with Visual Basic.NET development environment that supports Custom Windows Forms Controls or Custom ASP.NET Server Controls. Code 2 of 5 creation can easily be sent to the printer or to graphic images.

KeepAutomation.com provides more details about VB.NET Code 2 of 5 barcode, please see: Barcode Data Encoding of Code 2 of 5 in VB.NET, Barcode Size Setting of Code 2 of 5 in VB.NET.

Other Code 2 of 5 Barcode Solution

As a professional barcode tool developer, KeepAutomation.com provides complete Code 2 of 5 solutions, including Winforms Code 2 of 5, ASP.NET Code 2 of 5 for .NET IDEs; Java Code 2 of 5 generator and Java Code 2 of 5 Reader for Java IDEs; For Code 2 of 5 for Iphone and Code 2 of 5 for Android for smart phones; and Code 2 of 5 for Word, Code 2 of 5 for Excel for Microsoft Office, etc.

How to Specify Code 2 of 5 Barcode Image Using VB.NET class

There are so many elements that influence barcode images, such as by barcode orientation, barcode resolution, and barcode image formats. KeepAutomation.com VB.NET Code 2 of 5 barcode generator provides rich image option to customize your barcode images.

1. Download KeepAutomation.com VB.NET Generator and unzip

2. Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder.

3. Open Microsoft Visual Studio, choose "Add Reference" in "Project"

4. Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll

5. Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.

Generating Code 2 of 5 barcodes with Specified Orientation

Barcode orientation is also known as barcode rotation, which is the angle of the barcode. VB.NET Code 2 of 5 generator provides 4 type orientation: 0 degree, 90 degree, 180 degree and 270 degree.

Dim code25 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode()

code25.Symbology = KeepAutomation.Barcode.Symbology.Code2of5

code25.CodeToEncode = "0123456789"

code25.Orientation = KeepAutomation.Barcode.Orientation.Degree0

code25.generateBarcodeToImageFile("c:/code25_1.png")



Generating Code 2 of 5 Barcodes with Specified DPI

DPI is short for Dots per Inch, which is a measure to describe the resolution number of dots per inch in a digital print and the printing resolution of a barcode image.

Dim code25 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode()

code25.Symbology = KeepAutomation.Barcode.Symbology.Code2of5

code25.CodeToEncode = "01234567890"

code25.DPI = 104

code25.Orientation = KeepAutomation.Barcode.Orientation.Degree90

code25.generateBarcodeToImageFile("c:/code25_2.gif")



Generating Code 2 of 5 Barcodes with Different Image Formats

Image file formats is the standardized means of organizing and storing barcode images. VB.NET Code 2 of 5 generator provides rich Image formats to save barcode: GIF, TIFF, JPEG/JPG, PNG, BMP, etc.

Dim code25 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode()

code25.Symbology = KeepAutomation.Barcode.Symbology.Code2of5

code25.CodeToEncode = "012345678901"

code25.Orientation = KeepAutomation.Barcode.Orientation.Degree180

code25.generateBarcodeToImageFile("c:/code25_3.png")



You can change "png" to other image formats like "gif", "jpeg", "bmp", and "tiff".