KA.Barcode for ASP.NET
How to Generate EAN-128 Image in ASP.NET Projects
ASP.NET source code to generate, print GS1-128/EAN-128 in different files using Barcode for ASP.NET
  • User-defined GS1-128/EAN-128 1D bar code creation SDK for ASP.NET
  • Perfect barcode integration into ASP.NET web forms/ website and Microsoft IIS
  • Export multiple GS1 128/EAN 128 barcodes into GIF, BMP, PNG, JPEG, and TIFF without any distortion
  • Powerful barcode component barcode .NET, barcode ASP.NET, Word barcode developed for easy barcode creation
  • Programmatically rotate GS1-128/EAN-128 linear images into 0, 90, 180 and 270 degrees
  • Allow GS1-128/EAN-128 image resolution to be changed with the unit of DPI
  • High-quality GS1-128/EAN-128 1D images compatible with all major web browsers
  • Dynamically generating, printing accurate GS1-128/EAN-128 in accordance with GS1 standard
  • Recongize linear & 2D barcodes using ASP.NET barcode or barcode .NET
  • Thermal printer support for high-quality barcode output on low resolution printers
GS1-128/EAN-128 barcode maker software API for ASP.NET is designed to add GS1-128 barcode streaming generation feature to ASP.NET WebForms,web pages, Microsoft Internet Information Server (IIS), and other applications & development environments that can display a dynamic URL. This document suggests how to use KA.Barcode for ASP.NET to customize EAN-128 image in ASP.NET. You may find GS1-128 barcode data and size related sample codings in:
GS1-128/EAN-128 Image Setting in ASP.NET with C#, VB.NET Programming

Install GS1-128/EAN-128 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 C# or VB.NET barcode onto you programs to stream, insert EAN-128 in ASP.NET website/web pages:
using KeepAutomation.Barcode.Bean;
BarCode barcode= new BarCode();
barcode.CodeToEncode = "(00)GS1-128/EAN-128";
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

barcode.Symbology= KeepAutomation.Barcode.Symbology.EAN128
barcode.CodeToEncode = "(00)GS1-128/EAN-128"

Change GS1-128/EAN-128 Barcode Image Rotation

KA.Barcode Generator for ASP.NET provides selectable barcode image orientation to rotate GS1-128/EAN-128 barcodes into any angles of 0, 90, 180 or 270 degrees with "Orientation" property. The default is Degree0.
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree180;
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree180

Adjust GS1-128/EAN-128 Barcode Horizontal Alignment inside the Image

KA.Barcode Generator for ASP.NET allows developers to change the placement of GS1-128/EAN-128 bar alignment inside barcode image with "BarAlignment" property. The default is "Center".
barcode.BarAlignment = AlignmentHori.Center;
barcode.BarAlignment = AlignmentHori.Center

Adjust GS1-128/EAN-128 Barcode Image Format

KA.Barcode Generator for ASP.NET supports most major image format, like GIF, TIFF, JPEG/JPG, BMP, PNG, to save GS1-128/EAN-128 barcode image in your ASP.NET applications. User may change image format within "ImageFormat". The default is "Gif". Copy the demo code below to integrate EAN-128 in ASP.NET MVC.
barcode.ImageForamt = ImageFormat.Gif;
barcode.ImageForamt = ImageFormat.Gif
  • Barcode SDK for .NET WinForms : to draw and export high-quality barcodes in .NET Windows Forms applciations
  • VB.NET QR Code : For drawing and printing dynamic matrix barcode qrcode in visual basic.net projects
  • EAN-8 Word : Enable advanced 1D GTIN - 8 generating featured to be added in Word documents
  • Code 128 .NET WinForms : Generate 1D barcode Code 128 Code Set A using KA.Barcode Generator for .net for windows forms
  • Intelligent Mail .NET : .net framework 1d barcode USPS OneCode Solution Barcode image Generator
GS1-128/EAN-128 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 "EAN128"
  6. 6.
    Set "Orientation" to "Degree90" and "BarAlignment" to "Center"
  7. 7.
    Set "ImageFormat" to "Png", and then a GS1-128/EAN-128 with customized image occurs
GS1-128/EAN-128 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=11&code-to-encode=(01)23456789&orientation=2&bar-alignment=2&image-format=png"
  5. 5.
    A GS1-128/EAN-128 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=11&code-to-encode=(01)23456789&orientation=2&bar-alignment=2&image-format=png" />