Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET WinForms Barcode > .NET WinForms Barcoding Guide > .NET WinForms EAN-8 1D Barcode Generation Guide
Download Barcode for .NET WinForms Trial

.NET Windows Forms EAN-8 Barcode Generator

EAN-8 Barcode Generation in .NET WinForms Using C# & VB Class
  • Compatible with .NET Framework 2.0 and later versions
  • Completely compiled in managed .NET Visual C# and strickly tested
  • Easy to drag and drop linear EAN-8 barcode control to .NET Windows application form
  • Draw and print EAN-8 barcode in .NET WinForms Crystal and RDLC Reports
  • Generate high print-quality EAN-8 barcode image in Jpeg, Gif, Png, Bmp & Tiff
  • Provide an intuitive user interface to help users create industrial standard EAN-8 barcode
  • A mature .NET Windows Forms barcode generation library used worldwide
.NET Windows Forms EAN-8 Barcode Overview
EAN-8 is a 1D barcode derived from EAN-13. It is also known as EAN-8+5, EAN-8+2, EAN8, EAN8+5, EAN13+2, UPC-8, GTIN-8, GS1-8, and EAN/UCC-8.
An EAN-8 is comprised of several parts (Left and Right Quiet Zone, Normal Guard Bar Pattern, Data Characters, Centre Guard Bar Pattern and Check Digit). A Number System is included in Data Characters. The Number System is composed of two or three digits, which is essentially a country code. Each country has a numbering authority which assigns manufacturer codes to companies within its jurisdiction.
EAN-8 is used on small packages where an EAN-13 barcode seems to be too large, like on pencils, cigarettes and chewing gum.
Generate EAN-8 Barcode in .NET WinForms by Dragging and Dropping
  1. Add BarcodeLib.Barcode.WinForms.dl to your Visual Studio Toolbox and you will see four components (QRCodeWinForm, DataMatrixWinForm, PDF417WinForm and LinearWinForm).
  2. Drag component LinearWinForm to Form1 windows.
  3. Choose EAN-8 barcode type from Properties window, through which you can also change other settings of EAN-8 barcode.
  4. Run the project and you will see the generated EAN-8 barcode image.
Generate EAN-8 Barcode Image in .NET WinForms Using C# & VB Library

EAN-8 Barcode Generation Using C# & VB .NET class

First of all, you should add reference (BarcodeLib.Barcode.WinForms.dll) to your .NET WinForms project. The next step is to compile your codes.
Demo codes for generating EAN-8 barcode in C#.NET Windows Forms
     BarcodeLib.Barcode.Linear ean8 = new BarcodeLib.Barcode.Linear();
ean8.Type = BarcodeType.EAN8_5;
ean8.Data = "1986102";
ean8.SData = "12345";

ean8.UOM = UnitOfMeasure.INCH;
ean8.BarWidth = 0.02f;
ean8.BarHeight = 0.2f;
ean8.ImageWidth = 0.1f;
ean8.ImageHeight = 0.8f;
ean8.ImageFormat = System.Drawing.Imaging.ImageFormat.Bmp;

//Save EAN-8 barcode image into your system;
ean8.drawBarcode("c:/ean8.bmp");
Demo codes for generating EAN-8 barcode in VB.NET Windows Forms
     Dim ean8 As New BarcodeLib.Barcode.Linear()
ean8.Type = BarcodeType.EAN8_5
ean8.Data = "1986102"
ean8.SData = "12345"
ean8.SSeparation = 10

ean8.UOM = UnitOfMeasure.INCH
ean8.BarWidth = 0.02F
ean8.BarHeight = 0.2F
ean8.ImageWidth = 0.1F
ean8.ImageHeight = 0.8F
ean8.ImageFormat = System.Drawing.Imaging.ImageFormat.Bmp

'Save EAN-8 barcode image into your system
ean8.drawBarcode("c:/ean8.bmp")
Supported .NET Windows Forms Barcode Images
WinForms 1D Barcodes:
WinForms 2D Barcodes:
Such 2D barcodes as Data Matrix, PDF 417, QR-Code.



See Also: Related Barcoding Tutorials

.NET Windows Forms Visual C# & Visual Basic Barcoding Tutorials
are contained.