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

ASP.NET EAN-13 Barcode Generator Library

How to Generate EAN13 Barcodes in ASP.NET Web, Website, IIS Applications
  • Created ASP.NET EAN-13 barcodes are compatible with industry standards
  • Professional ASP.NET EAN-13 Barcode Generator 100% built in C#
  • Easy to redistribute, without activation key or registration code
  • Provide various options to output created ASP.NET EAN-13 barcode images
  • Offer flexible settings to adjust created ASP.NET EAN-13 barcode images
  • Provide various image formats to draw generated EAN-13 in image files
ASP.NET Linear EAN-13 Barcode Overview
Linear EAN-13 is widely used by manufacturers to encode information of their products. EAN-13 is comprised of 13 numeric data (including a check digit), encoding information like number system, manufacturer code and product code. With this linear barcode, we can track any product globally. And all EAN-13 Barcodes created by our ASP.NET EAN-13 Barcode Generator Library are absolutely compatible with standards listed in GS1 General Specification.
Add ASP.NET EAN-13 Barcode Generator Component
The installation of this ASP.NET EAN-13 Barcode SDK contains two parts:
  1. Install Barcodelib.Barcode.ASP.NET.dll to ASP.NET project reference.
    • Click "Add Reference..." in "Solution Explorer" and locate Barcodelib.Barcode.ASP.NET.dll in the trial.
  2. Install Barcodelib.Barcode.ASP.NET.dll to Visual Studio Toolbox.
    • Click "Choose Items..." in the Toolbox and find Barcodelib.Barcode.ASP.NET.dll in the trial package. After you click "OK", you could see four terms added in the toolbox, just like the following picture.

Create 1D EAN-13 Barcode in ASP.NET Web Application
After you install the ASP.NET EAN-13 Generator DLL, you could create EAN-13 barcode in few clicks
  1. Find the folder barcode in the downloaded trial and copy files "linear.aspx", "linear.aspx.cs" to your folder where your ASP.NET website project is located.
  2. Drag LinearASPNET from the toolbox to the split part of your aspx page, then you will see a Code 128 barcode on the form. Now, you may change the barcode type to EAN-13.
  3. Adjust EAN-13 barcode parameters in the Properties Window.
Produce EAN-13 Barcode in ASP.NET in C# or VB Codes
You could refer to the following sample codes when generating EAN-13 in ASP.NET Website with C# or VB.
     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
ean13.drawBarcode("C:/ean13winform.jpeg")
These EAN-13 generation demo codes are compiled in Visual C# 2005. Or you may view Detail EAN-13 C# Demo Code
     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
ean13.drawBarcode("C:/ean13winform.jpeg")
These EAN-13 generation demo codes are written in Visual Basic. Or you may view Detail EAN-13 VB.NET Demo Code
Generate Linear EAN-13 Barcode in Microsoft IIS
With our ASP.NET EAN-13 Barcode Generator SDK, you could also create EAN-13 barcode in IIS.
  1. Copy the folder barcode in the downloaded trial to yout IIS folder, like C:\ interpub.
  2. Set a new virtual directory (named barcode) in your IIS, and link it to the above "barcode" folder pasted in inetpub.
  3. Restart IIS and navigate to:
    http://YourDomain:port/barcode/linear.aspx?Type=11&Data=123456789123&LeftMargin=12&RightMargin=12
    To make further adjustment for the EAN-13 image, please view web stream URL parameters for EAN-13 here: .NET EAN-13 Barcode Property Settings.
  4. If you want to add this EAN-13 barcode image to your aspx or html page, please pass the url to IMG tag or src value.
    <img src=http://YourDomain:port/barcode/linear.aspx?Type=11&Data=123456789123&LeftMargin=12&RightMargin=12/>
    This method will not generate any barcode images in your IIS server side.
ASP.NET EAN-13 Barcode Generator Supported Barcodes
Support Linear Barcodes:
Support Matrix Barcodes:
Linear barcodes can be generated by ASP.NET Barcode Component: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, GS1-128/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.
2D barcodes can be generated by ASP.NET Barcode Component: Data Matrix, PDF 417, QR Code.



Other Related Barcode Generation Articles

ASP.NET C# & VB.NET Barcode Generation Guide