Home  >  ASP.NET Barcode Generator Components  >  How to Print Barcode in ASP.NET  >  EAN-13 Barcode Generating Control for ASP.NET Web Service
EAN-13 Barcode Generator DLL for ASP.NET Web Applications
ASP.NET EAN-13 Barcode Generator Control is a professional & highly-rated EAN-13 barcode generating SDK for ASP.NET web application, which is used to export, insert, or display EAN13 barcodes for ASP.NET web applications using VB.NET and C#.
Introduction - ASP.NET EAN-13 Barcode Generator Control
EAN-13, consisting of 13 characters, is a UPC-Based and numeric-only barcode symbology. ASP.NET Barcode generator, provided by KeepDynamic.com, aims to help you create this custom EAN-13 barcode images in your ASP.NET framework projects.
How to generate linear EAN-13 barcode images using other .NET barcoding libraries?
Features - ASP.NET EAN-13 Barcode Generator Control

EAN 13 ASP.NET Barcode Generator | Technologies

EAN 13 ASP.NET Barcode Generator | Imaging Settings

View more about EAN-13 Barcode Properties of ASP.NET Barcode Generator Library
Generation Guidance - ASP.NET EAN-13 Barcode Generator Control

How to Create EAN-13 Barcode in ASP.NET Web Controller

  1. Add KeepDynamic.BarCode.AspNet.dll from the file Library to your ASP.NET project and Visual Studio Toolbox
  2. Copy "linear.aspx", "linear.aspx.cs" from barcode folder in Documentation to your ASP.NET project
  3. Drag & drop BarCodeControl from the Toolbox to your ASP.NET project and a barcode image will be generated
  4. Click generated barcode image, change the value of SymbologyType to EAN13 and adjust the value of CodeText to a 12-digit data string in the Properties window
  5. Run the ASP.NET project to see generated EAN-13 barcode image

How to Generate & Print EAN13 Barcode in ASP.NET Class Applications

  1. Install KeepDynamic.BarCode.AspNet.dll from the file Library to your ASP.NET project by adding reference
  2. Use following free sample C# or VB.NET class codes to generate & create EAN-13 barcode images in ASP.NET class project
C# code for generating & printing EAN-13 barcode images in ASP.NET
// generate linear barcode object 
BarCode barcode = new BarCode();

// Set barcode type to EAN13
barcode.SymbologyType = SymbologyType.EAN13;

// Enter 12-digit data string
barcode.CodeText = "123456789123";

// set EAN13 barcode image settings
// Set bar width of EAN13
barcode.X = 2;

// set EAN13 barcode image
barcode.BarCodeWidth = 250;
barcode.BarCodeHeight = 90;

// save generated barcode images to png image file using C#
barcode.drawBarcode("C://kdean13.png");
VB.NET code for generating & printing EAN-13 barcode images in ASP.NET
' generate linear barcode object 
Dim barcode As New BarCode()

' Set barcode type to EAN13
barcode.SymbologyType = SymbologyType.EAN13

' Enter 12-digit data string
barcode.CodeText = "123456789123"

' set EAN13 barcode image settings
' Set bar width of EAN13
barcode.X = 2

' set EAN13 barcode image
barcode.BarCodeWidth = 250
barcode.BarCodeHeight = 90

' save generated barcode images to png image file using VB.NET
barcode.drawBarcode("C://kdean13.png")

How to Create & Print EAN-13 Barcode in IIS using ASP.NET Barcoding Library

  1. Find folder barcode in the folder Documentation of downloaded trial package
  2. Copy folder barcode to your IIS project, eg:C:\interpub
  3. Create a new virtual directory in your IIS named "barcode", and connect it to the above barcode folder in the C:\interpub
  4. Restart your Microsoft IIS and navigate to:
    http://YourDomain:Port/barcode/linear.aspx?symbology-type=14&code-text=856322220102&x=1&left-margin=10&right-margin=10
  5. Now, a Code 39 barcode is created on a page. Besides, you can use the following image tag to generate a Code 39 barcode on your html or aspx pages.
    <img src="http://YourDomain:Port/barcode/linear.aspx?symbology-type=14&code-text=856322220102&x=1&left-margin=10&right-margin=10" />
Note: X refers to bar width and code-text refers to encodable characters.
EAN-13 Barcode Generating Control Supported Barcode Types