Home  >  .NET Barcode Encoder Library Suite  >  Guide for VB.NET Barcode Generating Library  >  How to Generate EAN-13 Barcode Using VB.NET Class Code
VB.NET EAN-13 Bar Code Generator Component
VB.NET EAN-13 Bar Code Generator Component is a professional VB.NET EAN-13 barcode generating SDK, which can generate & draw EAN-13 barcode images for .NET applications using VB.NET class code.
Overview - VB.NET EAN-13 Bar Code Generator Component
EAN-13, a.k.a. European Article Number 13, EAN-13 Supplement 5/Five-digit Add-On, EAN-13 Supplement 2/Two-digit Add-On, UPC-13, GS1-13, EAN/UCC-13, is used to track consumer products internationally. This VB.NET Barcode generator, provided by KeepDynamic.com, is aimed to create & generate EAN-13 barcode images in VB.NET applications.
Related barcode generating solutions for EAN-13 images generation in .NET applications:
Features - VB.NET EAN-13 Bar Code Generator Component

EAN-13 VB.NET Barcode Generator Technologies

EAN-13 Barcode Customization of VB.NET Barcode Generator Library

View more about EAN-13 Barcode Properties of VB.NET Barcode Generator Library
Free VB.NET Class Code for EAN-13 Barcode Generation in VB.NET Application
Dim barcode As KeepDynamic.Barcode.Generator.BarCode
barcode = New KeepDynamic.Barcode.Generator.BarCode()

'Change the creating symbology to EAN13 barcode type
barcode.SymbologyType = SymbologyType.EAN13

'Assign 12 data digits that are encoded into EAN13 barcode symbology.
'Encodable character set of EAN13 is as follow,
' Numeric characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
'EAN13 symbology encodes a fixed data length of 13 digits inclusive of the check digit
' Enter a 12-digit data
barcode.CodeText = "123456789012"

'Enable the checksum option for EAN13 barcode symbology
'so that the barcode library computes the check digit automatically
barcode.EnableChecksum = True

'Select the graphic measurements as Pixel to EAN13 barcode
barcode.GraphicsUnit = KeepDynamic.Barcode.Generator.GraphicsUnit.Pixel

'Set the values of bar width and bar height to EAN13 barcode
barcode.X = 1
barcode.Y = 75

'Set the margin distance around the EAN13 barcode symbol
barcode.LeftMargin = 10
barcode.RightMargin = 10
barcode.TopMargin = 10
barcode.BottomMargin = 10

' Adjust generated EAN-13 barcode image size
barcode.BarCodeWidth = 140
barcode.BarCodeHeight = 120

'Set the resolution of EAN13 barcode image that is drawn to,
'and change the EAN13 barcode image orientation
barcode.Resolution = 72
barcode.Rotate = Rotate.Rotate0

'Display the characters encoded into the EAN13 barcode symbology
'Set the font style of characters encoded into the EAN13 barcode
barcode.DisplayCodeText = True
barcode.CodeTextFont = New System.Drawing.Font("Arial", 11.0F, System.Drawing.FontStyle.Regular)

'Set EAN13 barcode drawing image format to PNG in VB.NET
'Generate EAN13 barcode image in Visual Basic .NET
barcode.Format = System.Drawing.Imaging.ImageFormat.Png
Barcode Types - VB.NET EAN-13 Barcode Generator Control