Generate Barcode in VB.NET
Avapose .NET Barcode Generator is a lightweight .NET control DLL which can be used for embedding bar coding generation capabilities to any .NET Framework-based applications. The generator supports most popular linear (1D) and matrix (2D) barcode images.
.NET Barcode Generator SDK library includes
ASP.NET Barcode Generator,
C# Barcode Generator,
VB.NET Barcode Generator,
QR Code Generator .NET,
QR Code Generator ASP.NET,
QR Code Generator C#,
QR Code Generator VB.NET.
Avapose.NET Barcode Generator Control integrates well with VB.NET. The control is developed entirely in managed code, and it supports types of VB.NET projects. VB.NET developers could easily install it in their projects with simple X-copy deployment. .NET 2.0 and greater versions are supported.
The installed Avapose .NET Barcode Generator allows the developers to print quality barcode images in VB.NET projects. The generated barcode images could be customized easily. Scaling, rotation, aligning, and coloring of the barcode are supported.
VB.NET Barcode Generator SDK - Supported Barcode Symbologies
.NET Barcode Maker Component in VB.NET - Installation Requirements
System Requirement
- 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
.NET Barcode Writer in VB.NET - Barcode Generation
Drag and Drop Barcode to Windows Forms in VB.NET
- Download Avapose.com trial package and unzip;
- Copy Avapose.linearbarcode.winforms.dll or Avapose.matrixbarcode.winforms.dll to your Winforms project folder; (You do not need to copy .dll to .NET bin directory, Visual Studio will do so)
- Add LinearWinControl or MatrixWinControl to your Visual Studio Toolbox;
- Find Component LinearWinControl or MatrixWinControl in the Toolbox, drag and drop it to your forms;
- Activate the "Property" Window and change Barcode Type to your target barcode type;
- Customize the barcode on the forms accordingly.
(For more features with detailed information, see Linear Barcodes Tutorial and 2D Barcodes Tutorial)
Create Barcode in VB.NET in .NET Class
- Download Avapose.com trial package and unzip;
- Add Avapose.linearbarcode.winforms.dll or Avapose.matrixbarcode.winforms.dll to the VB .NET Winform project reference;
- Drag and drop a button to the form, and double-click the button;
- In the Form1.cs, copy the following sample code to accordingly
Barcode Generation in VB.NET Code (Code 128 for example):
Dim barcode As Avapose.linearbarcode.Linear = New Avapose.linearbarcode.Linear()
barcode.LinearBarcode = Avapose.linearbarcode.LinearBarcode.Code128
barcode.BarcodeData = "12345"
' 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
barcode.DrawBarcodeImage("c:/barcode.gif")
'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)