Generate and print Codabar barcode in an image in VB.NET applications
VB.NET Barcode Generator for Codabar Generation
  • Professional barcode component for .NET 2.0/3.0/4.0
  • Generate QR Code, UPC/EAN, EAN-8, ISBN, and more in .NET
  • Support VB.NET, C#, Managed C++ and Borland Delphi for .NET.
Codabar Barcode Generator in VB.NET
  • Embed Codabar generation capability into VB.NET projects
  • Generate graphic images with high quality
  • Strong named DLL written in managed code
  • Could be integrated into SQL Server Reporting Services (SSRS) and Crystal Report for .NET
  • Easy to define the start and stop characters
  • Generate Codabar with customizable wide and narrow bar
  • Support barcode rotation and alignment
  • Provide royalty free license and code and free support for developers
.NET Codabar Generator is a professional .NET SDK that could be used by VB.NET programmers to print Codabar in their projects. The class in the generator is designed specifically for Codabar generation. The start and stop characters could be defined easily. It also includes properties that could be used to scale the barcode to fit its specified requirements.
.NET Codabar Generator supports the following types of projects in VB.NET:
  • Console Application (runtime support)
  • Windows Forms Application (design-time and runtime support)
  • Class Library (runtime support)
  • Windows Service (runtime support)
VB.NET Barcode Generator - Codabar Specifications
Codabar, also known as Codeabar, Ames Code, NW-7, Monarch, Code 2 of 7, Rationalized Codabar, ANSI/AIM BC3-1995 or USD-4, is a linear barcode symbology designed to be read accurately when printed by dot-matrix printers for multi-part forms. Its hyphenated variant Code-a-bar has been registered for US federal trademark status.
.NET Codabar Generator encodes:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Codabar Barcode Creator in VB.NET - Codabar Generation

Install barcode generator DLL into VB.NET for creating Codabar barcode

Before you create Codabar in VB.NET, you need to install:
  • Windows XP, Windows Vista and Windows 7
  • .NET 2.0, 3.0 and advanced version
  • Microsoft Visual Studio 2005/2008/2010
  • Avapose.Barcode for .NET

Generate Codabar barcode in VB.NET using barcode creator library in .NET Class

  1. Download trial package and unzip;
  2. Add Avapose.linearbarcode.winforms.dll to the VB .NET Winform project reference;
  3. Drag and drop a button to the form, and double-click the button;
  4. In the Form1.cs, copy the following sample code to accordingly

VB.NET code for Codabar Generation in .NET projects using barcode creator

Dim barcode As Avapose.linearbarcode.Linear = New Avapose.linearbarcode.Linear()
barcode.LinearBarcode = Avapose.linearbarcode.LinearBarcode.Codabar
barcode.BarcodeData = "0123456789"
barcode.ApplyTilde = True

'Codabar Special
barcode.CodabarStartChar = Avapose.linearbarcode.CodabarStartStopChar.A
barcode.CodabarStopChar = Avapose.linearbarcode.CodabarStartStopChar.B
barcode.HoriBarRatio = 3

' barcode Size
barcode.MeasurementUnit = Avapose.linearbarcode.MeasurementUnit.Pixel
barcode.BarWidth_X = 2
barcode.BarHeight_Y = 50
barcode.BottomMargin = 10
barcode.TopMargin = 10
barcode.LeftMargin = 10
barcode.RightMargin = 10
barcode.BarcodeWidth = 175
barcode.BarcodeHeight = 50
barcode.ResizeBarcode = True
barcode.HoriBarAlignment = Avapose.linearbarcode.HoriBarAlignment.Center
barcode.Rotation = Avapose.linearbarcode.Rotation.Degree0

' Barcode Color
barcode.BackgroundColor = Color.White
barcode.ForegroundColor = Color.Black

'Barcode Text
barcode.DisplayText = True
barcode.TextFont = New Font("Times New Roman", 9, FontStyle.Regular)
barcode.TextColor = Color.Black
barcode.TextDistance = 4

'Barcode Image
barcode.Resolution = 96
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif

'More Methods:
'create, draw, paint barcode on Graphics object
Public Sub DrawBarcodeImage(ByVal graphics As System.Drawing.Graphics)
'create, draw, paint barcode on Bitmap object
Public Function DrawBarcodeImage() As System.Drawing.Bitmap
'create and draw to image file
Public Sub DrawBarcodeImage(ByVal filename As String)
'create, draw, paint barcodeon Stream object
Public Sub DrawBarcodeImage(ByVal fileStream As System.IO.Stream)
Related Codabar Barcode Integration & Generation Information
The following Codabar barcode integration and creation information links relate to this product that may be of interest to you:
Testmonial for Avapose Barcode Generator for .NET
We bought your product .NET Barcode Generator for VB.NET programming a few weeks ago, and it works pretty well!
Carlos Louis, Eureka Software Ltd, UK.