Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > C# Barcode Generation Guide > C#.NET EAN 8 Barcode Generation Component, also supports C# EAN-13 linear barcode
Download Barcode for .NET Suite Trial

EAN-8 Barcode Generator Library for C#.NET

How to Generate EAN-8 Barcode in .NET with C# Programming
  • Easy to use EAN-8 barcoding library SDK without activation key or registration code
  • Excellent EAN-8 generator dll with high remarks from previous .NET developers customers
  • Fully written in C# managed code, compatible with .NET Framework 2.0 and above
  • Able to generate EAN 8 in console applications & ASP.NET web applications
  • Easy to create EAN 8 barcode images in C#.NET Windows Forms projects
  • Capable of outputting EAN 8 barcodes to both image files and byte arrays
C#.NET Linear EAN-8 Barcode Overview
EAN-8, known as a short version of EAN-13, is commonly used in UK. It came into being with the purpose to replace EAN-13 when it is impossible to print an EAN-13 barcode in some small items, like pencils or cigarettes. Therefore, EAN-8 is a good choice when smaller printing space is required.
Steps to Generate EAN-8 Barcode Images in C#.NET Class
  1. Download & unzip the trial package. Then find C#.NET barcode generator dll and add it to your project reference.
  2. Add C#.NET barcode generator dll to your Toolbox item.
  3. You could generate EAN-8 barcode with following sample C# codes.
     BarcodeLib.Barcode.Linear ean8 = new BarcodeLib.Barcode.Linear();
ean8.Type = BarcodeType.EAN8;
ean8.Data = "1234567";

ean8.BarColor = System.Drawing.Color.Blue;
ean8.BarWidth = 1;
ean8.LeftMargin = 8;
ean8.RightMargin = 8;

// You could also adjust other settings of EAN 8, like image format, font, background color etc.

// Save barcode image into your system
ean8.drawBarcode("c:/ean8.jpeg");

// Encode EAN 8 barcode & output to byte array
byte[] barcodeInBytes = ean8.drawBarcodeAsBytes();

// Draw EAN 8 barcode to Graphics object
Graphics graphics = ...;
ean8.drawBarcode(graphics);

// Generate EAN 8 barcode and output to HttpResponse object
HttpResponse response = ...;
ean8.drawBarcode(response);

// Output created EAN 8 barcode to Stream object
Stream stream = ...;
ean8.drawBarcode(stream);
Above Free EAN 8 sample codes are built in Visual C# 2005
Steps to Create EAN 8 Images in ASP.NET Web Projects with C# Lib
  1. Download the trial package and find Barcodelib.Barcode.ASP.NET.dll in the foldr. Then embed it to your web project.
  2. Add Barcodelib.Barcode.ASP.NET.dll to the Toolbox.
  3. Open the folder "barcode" in the package and copy files "linear.aspx", "linear.aspx.cs" to your web project folder.
  4. Drag LinearASPNET from the Toolbox and drop it on the split part of your aspx page.
  5. Click produced barcode image and change barcode type to EAN-8 in the Properties Window or generate an EAN 8 barcode with C# EAN-8 Generation Sample Code.
Steps to Generate EAN-8 Barcodes in C# WinForms Applications
  1. Download the trial package and find BarcodeLib.Barcode.WinForms.dll in the folder. Then embed it to your windows project.
  2. Add BarcodeLib.Barcode.WinForms.dll to your Visual Studio Toolbox.
  3. Drag LinearWinForm to your windows form.
  4. Click generated image and adjust its barcode type to EAN-8 in the Properties Window or create an EAN8 image with above C# EAN-8 Creation Sample Code.
Other EAN 8 Barcode Generator Component Supported Barcode Types
C# 1D Barcode Generation:
C# 2D Barcode Generation:
The following linear barcode types are all compatible with EAN-8 C#.NET Barcode Generator Control:
Codabar, Code 11, Code 2 of 5, Code 39, Code 93, EAN-8, EAN-13, Interleaved 2 of 5, ITF-14 (UPC Shipping Container Symbol), Code 128, EAN 128/GS1 128, MSI Plessey, Intelligent Mail, Planet, Postnet, RM4SCC (British Royal Mail), UPC-A, UPC-E.
The following 2D barcode types are all compatible with EAN-8 C#.NET Barcode Generator Control:
Data Matrix, PDF 417, QR Code.





Provides High Quality Barcode in .NET, Barcode in ASP.NET, Barcode in .NET WinForms, Barcode in C#, Barcode in VB.NET, EAN-8 in C#, EAN-8 in VB.NET, EAN-8 Linear Barcode Control DLLs for .NET, ASP.NET, Windows Forms, SQL Server Reporting Services, Crystal Reports, and RDLC Reports.