Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode > ASP.NET Barcode Generation Guide > GS1-128/EAN-128 ASP.NET Barcode Generating SDK Guide
Download Barcode for ASP.NET Trial

ASP.NET GS1-128 Barcode Generator Library

How to Generate GS1-128 Barcodes in ASP.NET Web Applications / Website / IIS
  • Completely written in managed C#, compatible with both C# & VB programming languages
  • Easy to redistribute in ASP.NET application, without registration code or activation key
  • Generate industry standard GS1-128 barcode images in ASP.NET applications
  • Print GS1-128 images in .NET web Crystal Reports & Client RDLC Reports
  • Draw GS1-128 barcode images in gif, png, jpeg & bitmap files in ASP.NET class
  • Adjust GS1-128/EAN-128 barcode image settings with rich options, like apply tilde
Brief Overview of ASP.NET GS1-128 Barcode
GS1-128, also known as UCC 128 or EAN 128, is a linear barcode. It derives from Code 128, with a special function to encode data with meanings.
All GS1-128 images generated by our ASP.NET barcode generating SDK are 100% compatible with latest industry standards.
To know more about Gs1-128 linear barcode, please see .NET GS1-128/EAN-128 Linear Barcode Introduction.
Install ASP.NET GS1-128 Barcode Generator Control
The installation of our ASP.NET barcode generator component may include two parts.
  1. Install Barcodelib.Barcode.ASP.NET.dll to your ASP.NET project by adding reference.
  2. Install Barcodelib.Barcode.ASP.NET.dll to Toolbox by choosing items. (When you finish this part, you will see four new items appear in the Toolbox, as is shown in the following picture.):

Generate GS1-128 Barcode Images in ASP.NET Web Site
  1. You are supposed to finish the installation first. (See detailed steps as above)
  2. Find the folder barcode in the trial package. Open it and copy files "linear.aspx", "linear.aspx.cs" to your web project.
  3. Drag LinearASPNET from the Toolbox to your aspx page. Then a default Code 128 barcode image will appear.
  4. Click the generated barcode image, adjust its barcode type to EAN 128 and change other settings in the Properties Window.
  5. Run your ASP.NET web project to view the created GS1-128 1d barcode.
Create GS1-128 Barcode in ASP.NET in C# or VB Programming
While you are generating GS1-128 barcode in ASP.NET class, you may use the following free C# & VB codes.
     BarcodeLib.Barcode.Linear gs1 = new BarcodeLib.Barcode.Linear();
gs1.Type = BarcodeType.EAN128;
gs1.Data = "~ai211121211";

gs1.ProcessTilde = true;
gs1.BarColor = System.Drawing.Color.Blue;
gs1.BarWidth = 2;
gs1.LeftMargin = 12;
gs1.RightMargin = 12;
Above GS1-128 sample code written in Visual C# 2005. If needed, you may view More EAN-128 C# Barcoding Code
     Dim gs1 As New BarcodeLib.Barcode.Linear()
gs1.Type = BarcodeType.EAN128
gs1.Data = "~ai211121211"

gs1.ProcessTilde = True
gs1.BarColor = System.Drawing.Color.Blue
gs1.BarWidth = 2
gs1.LeftMargin = 12
gs1.RightMargin = 12
Above GS1-128 sample code written in Visual VB 2005. If needed, you may view More EAN-128 VB.NET Barcoding Code
Generate GS1-128 1D Barcode Image in Microsoft IIS
  1. Copy the folder "barcode" to your IIS folder, e.g. C:\ interpub.
  2. Create a new virtual directory in your IIS named "barcode", and connect it to the above "barcode" folder pasted in inetpub.
  3. Restart IIS and navigate to:

    To make further adjustment for the GS1-128 image, please view web stream URL parameters for GS1-128 here: Linear GS1-128/EAN-128 .NET Property Settings
  4. If you want to add this GS1-128 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=10&Data=(11)121211&LeftMargin=12&RightMargin=12 />
    This method will not generate any GS1-128 barcode images in your IIS server side.
ASP.NET GS1-128 Barcode Generator Supported Barcode Types
Support Linear Barcodes:
Support Matrix Barcodes:
ASP.NET Linear (1D) Barcode Types: 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.
ASP.NET Matrix (2D) Barcode Types: Data Matrix, PDF 417, QR Code.

Other Related Barcode Generation Articles

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