How to Generate EAN-13 in ASP.NET Library
EAN-13 (a.k.a. European Article Number 13) is a one member of EAN barcode, which is designed by the International Article Numbering Association (EAN) in Europe. EAN-13 is a fixed-length, numeric linear barcode symbology that is primarily used in supermarkets to identify product at the point of sales, and now in retail products internationally.
BusinessRefinery.com provides a set of methods for EAN-13 generation, and ASP.NET Barcode EAN-13 Generator is one of it. ASP.NET EAN-13 Barcode Generator supports to encode EAN-13 barcode in an efficient and accurate way in your ASP.NET web applications and Web server.
ASP.NET EAN-13 Barcode Generator DLL is a user-defined barcode generating SDK, which provides a set of barcode options for users to customize EAN-13 barcodes to suit their needs. It gives users the ability to specify size in inches and millimeters as well as allowing saving EAN-13 barcode image into multiple formats.
ASP.NET EAN-13 Barcode Generator provides a complete barcode generating guide for users to generate EAN-13 barcodes according to EAN-13 Specification - GS1 General Specification (Version 8). You can get more specific tutorials here on
how to encode valid data for EAN-13,
how customize EAN-13 barcode image, and
how to specify proper size for EAN-13.
EAN-13 Generator for ASP.NET Features
| Encodable Characters | Support to encode: - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| Supplementary Barcode | Support to add 2-digit & 5-digit supplementary barcode for EAN-13 barcodes |
| Easy to Use | Easy to integrate EAN-13 barcode generating capabilities into ASP.NET Web applications and Internet Information Service (IIS) |
| Programming Language | Completed run in Visual C#, Visual Basic.NET, Managed C++ and Borland Delphi for .NET |
| High-quality Image | Generate high-quality EAN-13 barcode image for all printers. No special printers or hardware are required |
| Check Digit Option | Automatically add Modulo 10 checksum digit for EAN-13 barcodes |
EAN-13 Generator for ASP.NET Requirements
Windows OS - Microsoft Windows 7 - Windows Server 2008 - Windows Vista - Windows Server 2003 - Windows XP | Development Environments - .NET 2.0/3.0/4.0 - C#, VB.NET, Managed C++, Borland Delphi    for.NET - Visual Studio 2005/2008/2010 - Internet Information Service (IIS) |
Install EAN-13 Generator for ASP.NET
- Download BizCode Generator for ASP.NET and unzip;
- Add reference: Add "BusinessRefinery.Barcode.Web.dll" to your ASP.NET project reference;
- Add to toolbox: To add Barcode Control to your ASP.NET Web Forms toolbox.
How to Drag & Drop Barcode Control into ASP.NET projects?
- Install ASP.NET Barcode Control;
- Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
- Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes;
- Drag and drop the WebLinearBarcode control into the Forms;
- Run the website and you will see a barcode image generated;
- More EAN-13 Setting see below.
How to Generate EAN-13 with C#, VB.NET Class in ASP.NET?
Copy those following sample code to you ASP.NET project:
using BusinessRefinery.Barcode;
Linear barcode = new Linear();
barcode.Symbology = Symbology.EAN13;
barcode.Code = "012345678901";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/ean-13-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13
barcode.Code = "012345678901"
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/ean-13-vb-net.gif")
How to Create Your Own EAN-13 in IIS?
- Download BizCode Generator for ASP.NET and unzip;
- Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
- Restart IIS, navigate to http://localhost/br_barcode/linear.aspx?code=012345678901&symbology=15;
- Add an image tag <img> into the web page to create EAN-13 barcode image in html or aspx pages, e.g.
<img src="http://localhost/br_barcode/linear.aspx?code=012345678901&symbology=15"/>.