KA.Barcode Generator for .NET Suite
How to Create & Resize EAN-13 in VB.NET
Complete VB.NET source code to generate, print EAN-13 images using Barcode Generator for .NET Control
  • Create and produce EAN 13 barcode images within VB.NET projects
  • Implementing dynamic barcodes, like C# Data Matrix, .NET Code 39, C# Code 39, .NET PDF417 in your projects
  • Easy integration of EAN-13 linear bar codes into Microsoft Visual Studio 2005/2008/2010
  • Drawing, creating EAN-13 in Windows Forms, ASP.NET web pages, SQL Server Reporting Services
  • Comprehensive tutorials for EAN-13 data encoding & generation in VB.NET programming
  • Insert adjustable supplemental barcode add-on for EAN-13+2, EAN-13+5
  • Drawing, creating EAN-13 and adjusting dimensions like module bar width & height of the generated images
  • Provide barcode SDK for implementing barcodes as you wish, like Data Matrix VB.NET, Intelligent Mail Excel, ASP.NET ITF-14, Java UPC-A, etc.
  • Featuring flexible sizing options to adjust the width and height of the printout EAN-13 image in VB.NET
  • Capable of printing, generating EAN-13 barcode image with minimum X to save space
EAN-13 barcode creator addin for VB.NET is a mature barcode generating component SK library of best quality to create, develop EAN-13, EAN-13Sup2 and EAN-13Sup5 barcodes in VB.NET web forms and applications. With KA.Barcode for VB.NET, users may easily various size EAN-13 barcodes to suit your needs. This document explains how to resize EAN-13 barcodes in VB.NET, IIS and other examples of EAN-13 data encoding and image setting:
Method 1: Drag and Drop Barcode to WinForms in C#.NET. 1. Open Microsoft Visual Studio. 2. Create a Windows Forms Application using the installed...
Microsoft Windows XP; Microsoft Visual Studio 2005; Visual C#.NET. 1D & 2D Barcode Creation in SSRS Using C# Class. Download Demo Package for...
Microsoft Visual Studio 2005; Visual C#.NET. How to Generate Barcodes in RDLC Using C#.NET. Download Demo Package. Download KeepAutomation Barcode...
EAN-13 Barcode Structure

EAN-13 barcode (a.k.a European Article Number 13, EAN/UCC-13, GS1-13, GTIN-13) is constructed of:
  • Left Quiet Zone
  • The number System
  • The manufacturer code
  • The product code
  • The check digit
  • Right Quiet Zone
EAN-13 Size Setting in VB.NET Class Libarary

Install EAN-13 Barcode Creator Control into .NET Projects

  1. 1.
  2. 2.
    Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder
  3. 3.
    Open Microsoft Visual Studio, choose "Add Reference" in "Project"
  4. 4.
    Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll
  5. 5.
    Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references
Copy those following VB.NET barcoding syntax to you EAN-13 generation programs:
<Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.EAN13
barcode.CodeToEncode = "012345678901"

Barcoding EAN-13 Barcode BarcodeUnit

BarcodeUnit (URL: barcode-unit; Default: Pixel): it is the unit measurement for all size related settings in EAN-13 barcodes. User may change it with "Pixel", "Inch" and "Cm". Replace sample code with following one:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel

Add EAN-2 & EAN-5 Barcodes with Supplement Barcode Property

Symbology (URL: symbology; Default: Code128Auto): it is used for changing barcode types.

SupplementCode(URL: supplement-code; Default: ""): it is used for encoding supplementary data.

SupplementHeight (URL: supplement-height; Default: 0.8f): it is the height of bar in supplementary symbol EAN-2 or EAN-5.

SupplementSpace (URL: supplement-space; Default: 15): it is used for changing space between EAN-13 symbol and supplementary symbol EAN-2 or EAN-5.

Replace sample code with following one:
barcode.Symbology = KeepAutomation.Barcode.Symbology.EAN13Sup2
barcode.SupplementCode ="12"
barcode.SupplementHeight = 0.7
barcode.SupplementSpace = 20

Set EAN-13 with X and Y Property

X (URL: x; Default: 1): it is the width of the narrow bar in EAN-13 barcodes

Y (URL: y; Default: 50): it is the height of bars in EAN-13 barcodes.

Replace sample code with following one:
barcode.X = 3
barcode.Y = 75

Set EAN-13 with BarCodeWidth and BarCodeHeight Property

BarCodeWidth (URL: barcode-width; Default: 0): it is the barcode width of EAN-13 barcodes.

BarCodeHeight (URL: barcode-height; Default: 0): it is the barcode height of EAN-13 barcodes.

Replace sample code with following one:
barcode.BarCodeWidth = 200
barcode.BarCodeHeight = 75

Set EAN-13 with Quite Margin Property

TopMargin (URL: top-margin; Default: 0): it is the barcode image top margin in EAN-13 barcodes.

BottomMargin (URL: bottom-margin; Default: 0): it is the barcode image bottom margin in EAN-13 barcodes.

LeftMargin (URL: left-margin; Default: 0): it is the barcode image left margin in EAN-13 barcodes.

RightMargin (URL: right-margin; Default: 0): it is the barcode image right margin in EAN-13 barcodes.

Replace sample code with following one:
barcode.TopMargin = 8
barcode.BottomMargin = 8
barcode.LeftMargin = 6
barcode.RightMargin = 6