UPC-A Barcode Generator/Library for VB.NET
Generate high quality UPC-A, supplemental data UPC-A+2, UPC-A+5 with barcode control for VB.NET
UPC-A Barcode Generating Component/Libray in VB.NET - Overview
UPC-A .NET barcode generation control is a robust and reliable barcode library SDK that easily to generate not only UPC-A, but also other linear barcodes in high quality in Visual Studio 2005/2008/2010 for VB.NET applications. UPC-A barcode can be printed or saved as graphic image in gif, tiff, bmp, png and jpeg formats. Barcode size, barcode color, barcode resolution and other properties are available for adjusting to meet specific requirement.
UPC-A Barcode Library for VB.NET - Benefits
- Generate high quality UPC-A, UPC-A+2, UPC-A+5 in VB.NET projects.
- It is easy to install and integrate barcode UPC-A generating component into VB.NET developments.
- Draw and print UPC-A in SQL server reporting service & crystal reports for VB.NET projects.
- Generate high quality UPC-A in VB.NET class library and console application.
- Produce easy-to-use UPC-A in Windows Forms Applications for VB.NET.
- Easy to adjust barcode properties includes X dimension, barcode height, barcode width, image width etc..
- The checksum digit of UPC-A is automatically computed in barcode control for VB.NET.
- Barcode rotate allows 0, 90, 180 or 270 degree changing.
- The barcode can be saved or printed as image without the use of fonts.
- UPC-A barcode image can be saved as gif, tiff, png, bmp and jpeg.
- It is completely run in Visual Basic.NET and compatible with 2.0, 3.0 and later versions.
- It is compatible with Visual Studio 2005/2008/2010 in Windows 2000 and advanced operating systems.
UPC-A Barcode Generation Library for .NET Applications
Aspper.com provides complete information of
guideline to generate dynamic UPC-A barcodes into .NET applications and report solution using VB.NET Class Library.
Generate UPC-A in Visual Basic.NET Applications
Installation of UPC-A Barcode Control in Visual Studio
- First, download VB.NET barcode control and unzip.
- Then, copy the barcode dll to the project folder. Do not copy to the bin directory; visual studio will do so automatically.
- Last, add Aspper barcode control dll to project reference. To achieve this, you should open visual studio, find the solution explore and reference, right click reference and select add reference, add the Aspper barcode control dll to reference.
Integrate UPC-A Barcodes in Visual Basic.NET Class
Add UPC-A barcode control dll to your VB.NET project reference.
'UPC-A valid data character set: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
UPC-A valid data length: 11 digits only, excluding the last checksum digit
Dim barcode As Aspper.Barcode.Encoder.ClassLibrary.BarCode = New Aspper.Barcode.Encoder.ClassLibrary.BarCode
barcode.Symbology = Aspper.Barcode.Encoder.ClassLibrary.Symbology.UPCA
barcode.Data = "50215021502"
'When you need supplement barcode, you need also know two properties: SupHeight and SupSpace; Supheight
means supplement bar height and bar height ratio, SupSpace means
space between barcode and supplement barcode (in pixel).
Dim barcode As Aspper.Barcode.Encoder.ClassLibrary.BarCode = New Aspper.Barcode.Encoder.ClassLibrary.BarCode
barcode.Symbology = Aspper.Barcode.Encoder.ClassLibrary.Symbology.UPCASup2;
barcode.Data = "50215021502"
barcode.SupData = "12";
barcode.SupHeight = 0.6f;
barcode.SupSpace = 20;
'UPC-A barcode size including X dimension, Y dimension, image width, image height, rotate, resolution, left margin,
right margin are all available for changing, you may adjust the value to generate the specific barcode.
barcode.UOM = Aspper.Barcode.Encoder.ClassLibrary.UnitOfMeasure.Pixel
barcode.X = 1
barcode.Y = 60
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.BearerBarStyle = 0
barcode.BarcodeImageWidth = 175
barcode.BarcodeImageHeight = 50
barcode.Angle = Aspper.Barcode.Encoder.ClassLibrary.Angle.Degree0
barcode.AutoResize = True
'UPC-A text properties include text color, text font and whether to show human-readable text.Following is the example:
barcode.ShowText = True
barcode.TextColor = Color.Black
barcode.TextFont = New Drawing.Font("Arial",10.0F, Drawing.FontStyle.Regular)
'UPC-A barcode image may be in gif, tiff, png, bmp and jpeg formats.For example:
barcode.draw(".../upca.png")