KA.Barcode Generator for ASP.NET
How to Generate EAN-13 Image in ASP.NET Projects
ASP.NET source code to generate, print EAN-13 in different file formats using Barcode for ASP.NET Control
  • Support 1D EAN-13 bar code integration into Microsoft Visual Studio 2005/2008/2010
  • Provide detailed VB.NET barcode sample, Excel barcode generation & C# barcode generation guides for users
  • Simple to print, make EAN-13 images to insert in ASP.NET websites/ webform/ web pages
  • Dynamically generating EAN-13 in Microsoft Internet Information Service (IIS)
  • Absolutely support EAN-2 & EAN-5 add-ons for linear EAN-13 barcodes
  • Stream and save 1D EAN-13 barcodes image locally into BMP, Jpeg, Png, and Tiff files
  • Implementing dynamic barcodes, like Word Codabar, EAN 128 VB.NET, EAN-13 .NET WinForms, Code 128 Word in your projects
  • Allow EAN-13 image resolution to be changed with the unit of DPI
  • Store EAN-13 barcode images within ASP.NET graphic objects
  • Compatible with GS1 standard for EAN-13 generation
EAN-13 barcode maker software API for ASP.NET is a barcoding function of KA.Barcode Generator for ASP.NET, which is designed for ASP.NET developers who need to generate, create their own EAN-13 barcodes in ASP.NET webform/ website/ web pages. Here's a tutorial for rendering EAN-13 barcode image in ASP.NET; other tutorials about EAN-13 data encoding and size settings in ASP.NET, please see:
EAN-13 Image Setting with C#, VB.NET Class in ASP.NET

Installation of EAN-13 Barcode Maker Control into ASP.NET Projects

  1. 1.
  2. 2.
    Add reference: Add "KeepAutomation.Barcode.Web.dll" to your ASP.NET project reference
  3. 3.
    Add to toolbox: To add BarcodeControl to your ASP.NET toolbox
Copy the barcode performance demo below to string an EAN-13 image in ASP.NET with C#/ VB.NET programming:
using KeepAutomation.Barcode.Bean;
BarCode barcode= new BarCode();
barcode.Symbology= KeepAutomation.Barcode.Symbology.EAN13;
barcode.CodeToEncode = "012345678901";
barcode.generateBarcodeToImageFile("C://barcode-ean13-csharp.gif");
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

barcode.Symbology= KeepAutomation.Barcode.Symbology.EAN13
barcode.CodeToEncode = "012345678901"
barcode.generateBarcodeToImageFile("C://barcode-ean13-vbnet.gif")

Add Supplementary Barcode Image for EAN-13 Barcode

KA.Barcode Generator for ASP.NET supports to add supplementary barcode image EAN-2 or EAN-5 for EAN-13 barcodes. Users may add EAN-2 or EAN-5 barcodes with "Symbology" and "SupplementData' properties.
barcode.Symbology= KeepAutomation.Barcode.Symbology.EAN13Sup2;
barcode.SupplementCode = "13";
barcode.Symbology= KeepAutomation.Barcode.Symbology.EAN13Sup2
barcode.SupplementCode = "13"

Set EAN-13 Barcode Image Rotation

KA.Barcode Generator for ASP.NET supports 4 type orientations: 0 degree, 90 degree, 180 degree and 270 degree for the different purpose of users. Users may change EAN-13 barcode image angles using "Orientation" property. The default is Degree0.
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree180;
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree180

Display EAN-13 Human-readable Text

KeepAutomation provides functionalities to hide or display human-readable data text under EAN-13 barcode symbols. In order to show the data text, users may enable "DisplayText" and customize font style, etc. via "TextFont" and "TextMargin".
barcode.DisplayText = true;
barcode.TextFont = new Font("Arial", 10f, FontStyle.Regular);
barcode.TextMargin = 6;
barcode.DisplayText = true
barcode.TextFont = new Font("Arial", 10f, FontStyle.Regular)
barcode.TextMargin = 6
EAN-13 Image Setting with Drag & Drop BarcodeControl
  1. 1.
    In "Choose Toolbox Items" form, click button "Browse...", and select KeepAutomation.Barcode.Web.dll
  2. 2.
    Now you'll see BarCodeControl in your toolbox
  3. 3.
    Drag and drop the BarCodeControl into the Forms and a Codabar image is generated
  4. 4.
    Open your barcode setting panel
  5. 5.
    Choose "Symbology" to "EAN13"
  6. 6.
    Set "Orientation" to "Degree180" and "DisplayText" to "true"
  7. 7.
    Set "TextFont" to "Arial, 10pt", "TextMargin" to "6"
  8. 8.
    Then an EAN-13 with customized image occurs
EAN-13 Image Setting in Internet Information Service (IIS)
  1. 1.
    Copy folder "barcode" in your download the trial package to your IIS web application folder
  2. 2.
    Create a virtual directory, named "barcode", and link to your just copied "barcode" folder
  3. 3.
    Restart IIS and now you have successfully installed the ASP.NET Barcode Generator web application
  4. 4.
    To test it, open your web browser, and navigate to "http://localhost/barcode/barcode.aspx?symbology=15&code-to-encode=012345678901&orientation=3&display-text=true&text-font=10pt&text-margin=6"
  5. 5.
    An EAN-13 barcode with numeric data will be displayed
  6. 6.
    If you want to barcode embed in HTML or ASP scripts as an image, insert the <IMG> tag: <img src="http://localhost/barcode/barcode.aspx?symbology=15&code-to-encode=012345678901&orientation=3&display-text=true&text-font=10pt&text-margin=6" />