Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > VB.NET Barcode Generation Guide > VB.NET EAN-13 Barcode SDK Library
Download Barcode for .NET Suite Trial

EAN13 VB.NET Barcode Generator Library

How to Create Linear EAN13 Barcodes Images in .NET with Visual Basic
  • Easy to integrate EAN-13 barcode generation SDK into VB.NET program developing environment
  • Generate & draw linear EAN-13 barcode images in various VB.NET applications
  • Able to create EAN-13 barcodes in .NET Windows Forms with Visual Basic Class
  • Easy to adjust EAN-13 barcode image settings using simple VB.NET programming
  • Draw EAN-13 in SQL Server Reporting Service & Crystal Reports for .NET projects
  • Own high compatibility with .NET Framework 2.0, 3.0, 3.5 and later versions
Brief Introduction of VB.NET EAN-13 Barcode Image
EAN13, as the standard barcode of European Article Number, is widely used worldwide. This linear barcode can only encode numeric data like 0,1,2,3,4,5,6,7,8,9. And according to GS1 General Specification, EAN13 can encode 12 data and 1 check digit. As for the check digit, our VB.NET Barcode Generator Component could generate it automatically.
How to Generate EAN-13 Barcodes in VB.NET Class?
You may generate a high-quality EAN13 barcode in the following three steps:
  1. By adding reference, you could install our VB.NET Barcode Component to your web project.
  2. By choosing item, you could install this VB.NET Barcode DLL to the Toolbox.
  3. Now, you may generate EAN-13 by using the following free VB sample codes.
     Dim ean13 As New BarcodeLib.Barcode.Linear()
ean13.Type = BarcodeLib.Barcode.BarcodeType.EAN13
ean13.Data = "123456789123"

ean13.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg
ean13.BarColor = Color.Blue
ean13.BarWidth = 2
ean13.LeftMargin = 4
ean13.RightMargin = 4

' More EAN-13 barcode settings here, like image color, font, human-readable text font etc.

' Save EAN-13 barcode image into your system
ean13.drawBarcode("c:/ean13.jpeg");

' Encode EAN-13 barcode & output to byte array
byte[] barcodeInBytes = ean13.drawBarcodeAsBytes();

' Encode EAN-13 barcode to Graphics object
Graphics graphics = ...;
ean13.drawBarcode(graphics);

' Encode EAN-13 barcode and output to HttpResponse object
HttpResponse response = ...;
ean13.drawBarcode(response);

' Encode EAN-13 barcode and output to Stream object
Stream stream = ...;
ean13.drawBarcode(stream);
Above Free EAN-13 sample codes are written in Visual Basic .NET
How to Create EAN-13 Images in VB.NET ASP.NET Web Applications?
  1. Add Barcodelib.Barcode.ASP.NET.dll to your web project.
  2. Add Barcodelib.Barcode.ASP.NET.dll to the Toolbox.
  3. Copy files "linear.aspx" & "linear.aspx.cs" from the folder barcode in the downloaded trial package to the folder where your web project is created.
  4. Drag LinearASPNET from the Toolbox to the split part of your aspx page. Then a Code 128 barcode image will appear.
  5. Click the produced image and change its type to EAN13 and its other settings in the Properties Window or with above free VB sample codes.
How to Generate EAN-13 Barcodes in VB.NET Windows Forms Software?
  1. Download and unzip the trial package, and find the Barcode WinForms Library.
  2. Install .NET WinForms Barcode DLL (Barcodelib.Barcode.WinForms.dll) to your Windows Form project referrence or to Visual Studio Toolbox.
  3. Drag LinearWinForm to your windows form and you will see a Code 128 barcode image.
  4. Click the image and adjust its type to EAN13 in the Properties Window or with above free VB sample codes.
Barcodes Supported by EAN13 VB.NET Barcode Generator
VB.NET Linear Barcodes:
VB.NET Matrix Barcodes:
Barcode Library for VB.NET - Generates Linear Barcodes: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, EAN 128, Interleaved 2 of 5, ITF14 (UPC Shipping Container Symbol), MSI Plessey, OneCode, Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
Barcode Library for VB.NET - Generates 2D Barcodes: Data Matrix, PDF417, QR Code.