KA.Barcode for ASP.NET
How to Create & Resize EAN-128 in ASP.NET
ASP.NET source code to generate, print GS1-128/EAN-128 images using Barcode Generator for ASP.NET
  • Fully integrate with .NET Framework and Microsoft Visual Studio 2005/2008/2010
  • Simple to drag & drop GS1-128/EAN-128 1D barcode generation control to ASP.NET Web forms
  • Support to print 2D barcode in ASP.NET as well, including C# Data Matrix, C# PDF417, ASP.NET EAN-8
  • High-quality barcode generation in Microsoft Internet Information Services (IIS)
  • Compatible with GS1 specification to draw, build scannable EAN-128 in ASP.NET webform/ websites
  • Fully change barcode measuring unit for GS1-128/EAN-128 1D bar code
  • Simple to adjust quiet margin surrounding linear GS1-128/EAN-128 images in web pages
  • Capable of drawing, creating maximum X in a fixed GS1-128/EAN-128 image width
  • Embedding dynamic linear & 2D barcodes, such as Code 128 VB.NET, EAN-13 .NET, PDF417 Excel, .NET UPC-A, in your applications
  • Support all major web browsers, including Internet Explorer, FireFox, Chrome, and Safari
GS1-128 (UCC/EAN-128) Barcode Generator Addin Device for ASP.NET is a professional barcode creator API SDK for making GS1-128 barcodes in ASP.NET webform/ website/ webpage, IIS, C#, Visual Basic.NET. This page provides complete tutorial for changing GS1-128 barcode size via X, Y dimension, barcode width & height, margin of left & right, etc. User guide for GS1-128 data encoding and image setting are also provided with demos, please see:
GS1-128/EAN-128 Barcode Structure
GS1-128/EAN-128 barcode (a.k.a EAN-128, UCC-128) is constructed of:
  • Left Quiet Zone
  • A code128 start character (START-A, START-B or START-C)
  • A code128 FNC1 character
  • Application Identifier (AI)
  • Message encoded
  • Check character
  • Stop Character
  • Termination bar
  • Right Quiet Zone
GS1-128/EAN-128 Size Setting with C#, VB.NET Class in ASP.NET

Install GS1-128/EAN-128 Barcode Creator 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 program onto you forms to produce, string an EAN-13 in ASP.NET web page:
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"
View More. How to Set ECL & ECI for QR Code in ASP.NET. ....
QR Code Overview in .NET WinForms Library. QR Code, known ....
Can easily adjust QR Code settings through Visual C# programming. Please click the tutorial here for more details. How to create barcode in C#.NET...

Generating GS1-128/EAN-128 Barcode with BarcodeUnit

BarcodeUnit (URL: barcode-unit; Default: Pixel): it is the unit measurement for all size related settings in GS1-128/EAN-128 barcodes. User may change it with "Pixel", "Inch" and "Cm". Replace sample code with following one:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel;
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel

Creating GS1-128/EAN-128 with Specific Bar Width & Height (X & Y)

X (URL: x; Default: 1): it is the width of the narrow bar in GS1-128/EAN-128 barcodes.

Y (URL: y; Default: 50): it is the height of bars in GS1-128/EAN-128 barcodes.
barcode.X = 3;
barcode.Y = 75;
barcode.X = 3
barcode.Y = 75

Printing GS1-128/EAN-128 with Fixed BarCodeWidth and BarCodeHeight

BarCodeWidth (URL: barcode-width; Default: 0): it is the barcode width of GS1-128/EAN-128 barcodes.

BarCodeHeight (URL: barcode-height; Default: 0): it is the barcode height of GS1-128/EAN-128 barcodes.
barcode.BarCodeWidth = 200;
barcode.BarCodeHeight = 75;
barcode.BarCodeWidth = 200
barcode.BarCodeHeight = 75

Drawing GS1-128/EAN-128 with Specified Quiet Zones/ Margins

TopMargin (URL: top-margin; Default: 0): it is the barcode image top margin in GS1-128/EAN-128 barcodes.

BottomMargin (URL: bottom-margin; Default: 0): it is the barcode image bottom margin in GS1-128/EAN-128 barcodes.

LeftMargin (URL: left-margin; Default: 0): it is the barcode image left margin in GS1-128/EAN-128 barcodes.

RightMargin (URL: right-margin; Default: 0): it is the barcode image right margin in GS1-128/EAN-128 barcodes.
barcode.TopMargin = 8;
barcode.BottomMargin = 8;
barcode.LeftMargin = 6;
barcode.RightMargin = 6;
barcode.TopMargin = 8
barcode.BottomMargin = 8
barcode.LeftMargin = 6
barcode.RightMargin = 6
GS1-128/EAN-128 Size 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
GS1-128/EAN-128 Size 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=0123456789&barcode-unit=0&x=3&y=75&barcode-width=200&barcode-height=75&top-margin=8&bottom-margin=8&left-margin=6&right-margin=6"
  5. 5.
    A GS1-128/EAN-128 barcode with customized size occurs will be displayed