KA.Barcode for .NET Suite
How to Generate EAN-8 in VB.NET Application
How to generate linear EAN-8 barcode images in VB.NET class library, ASP.NET web forms, winforms
  • Integrate EAN-8 generating features into Microsoft Visual Studio 2005/2008/2010
  • Easy to generate EAN-8 barcodes in .NET Framework using VB.NET programming
  • Support EAN-8 creation in VB.NET Winforms applications and VB.NET Web forms
  • Create supplemental 2 & 5 digits barcodes for EAN-8 in VB.NET projects
  • Accurate EAN-8 creation according to GS1 system of standards
  • Multiple EAN-8 settings available including width, height, font, resolution, orientation, etc.
  • EAN-8 resolution customizable to print high-quality images for all printers and scanners
  • Print and save EAN-8 as gif, jpeg, png, tiff, and bitmap files in VB.NET class
EAN-8 Barcode Generator for VB.NET is one function of KA.Barcode for .NET, allowing easy EAN-8 barcode generation in .NET applications with detailed VB.NET sample code. With this barcode generator, users may also customize every aspect of EAN-8 barcode, such as module size, human-readable text, resolution, orientation, etc.
EAN-8 Barcode Introduction
EAN-8 is also named as European Article Number 8, EAN/UCC-8, GS1-8, with variants EAN 8+2, EAN-8 Supplement 2 (a two-digit Add-On), EAN-8 +5, EAN-8 Supplement 5(a five-digit add-on). It is a subset of EAN-13, used on small package in retail industry.
EAN-8 Encodable Character Set:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
EAN-8 Generation in VB.NET Programming

Install EAN-8 Barcode Encoder for .NET Suite into your Project

  1. 1.
    Download KA.Barcode for .NET Suite Trial and unzip;
  2. 2.
    Add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to reference;
  3. 3.
    Add Winform Barcode Control or ASP.NET Barcode Control to Visual Studio .NET ToolBox.
Byte data: (ISO/IEC 8859-1) encoding characters at 8 bits per character; Kanji Characters; Numeric: digits 0 - 9. QR Code Generation in VB.NET. ....
QR Code Overview in .NET WinForms Library. QR Code, known as ....
Recongize linear & 2D barcodes using .NET barcode or ASP.NET barcode; Drawing ....
Here's a tutorial for resizing QR Code barcode in VB.NET; other tutorials about QR Code data encoding and image settings with VB.NET samples ....
more>

VB.NET Demo Code to Generate EAN-8 in .NET Applications

Dim ean8 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
ean8.Symbology = KeepAutomation.Barcode.Symbology.EAN8


' Set EAN-8 valid input: Arabic numeric 0-9. Length: 7-digit.
ean8.CodeToEncode = "1234567"


' EAN-8 unit of measure: pixel, cm and inch
ean8.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel

' EAN-8 image resolution in dpi
ean8.DPI = 72

' EAN-8 size settings properties

' EAN-8 module bar width (X dimention), default is 1 pixel.
ean8.X = 2


' EAN-8 barcode image width
ean8.BarCodeWidth = 320

' EAN-8 image margin size, minimum value is 2X on four sides according to specification.
ean8.LeftMargin = 4
ean8.RightMargin = 4
ean8.TopMargin = 4
ean8.BottomMargin = 4

' EAN-8 image orientation, 0, 90, 180, 270 degrees supported.
ean8.Orientation = KeepAutomation.Barcode.Orientation.Degree90

' Set EAN-8 human-readable text style
ean8.DisplayText = true
ean8.TextFont = new Font("Arial", 10f, FontStyle.Regular)
ean8.TextMargin = 7


' Print and save EAN-8 bar codes in Png, Gif, Jpeg/Jpg, Tiff, Bmp image formats.
ean8.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
ean8.generateBarcodeToImageFile("C://ean8_in_vb.png")

How to Generate EAN-8 Add-On Barcode in .NET Applications with VB.NET Demo Code

Dim ean8sup2 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
ean8sup2.Symbology = KeepAutomation.Barcode.Symbology. EAN8Sup2

' Set EAN-8 valid input: Arabic numeric 0-9. Length: 7-digit.
ean8sup2.CodeToEncode = "1234567"

' Set Add-on valid input: Arabic numeric 0-9. Length: 2-digit.
ean8sup2.SupplementCode = "12"

' Set Add-on barcode height and space.
ean8sup2.SupplementHeight = 0.9
ean8sup2.SupplementSpace = 20

' Print and save EAN-8 bar codes in Png, Gif, Jpeg/Jpg, Tiff, Bmp image formats.
ean8sup2.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
ean8sup2.generateBarcodeToImageFile("C://ean8sup2_2_in_vb.png")