How to Generate EAN-13 in .NET Library
EAN-13 (a.k.a. European Article Number 13) barcode is a barcoding standard which is a superset of the original 12-digit Universal Product Code (UPC) system developed in the United States. The EAN-13 barcode is defined by the standards organization GS1.
EAN-13 Generator for .NET is easy to generate and create EAN-13 barcodes in .NET applications. Worked with Microsoft development tool Visual Studio, EAN-13 for .NET Ultimate supports C#, VB.NET, managed C++ and Delphi.NET and other development environments for .NET Framework using DLLs and controls.
.NET EAN-13 Generating SDK is easy to draw EAN-13 barcode images by using DrawView Barcode Control. User may fully adjust EAN-13 barcode size, image and human-readable text with barcode options provided. All the generated EAN-13 barcode objects can be saved as an image such as TIFF, BMP, GIF, JPEG or PNG files to a specified file name.
EAN-13 for .NET Ultimate Features
| Encodable Characters | Support to encode: - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| Supplementary Barcode | Support to add 2-digit & 5-digit supplementary barcode for EAN-13 barcodes |
| Barcode Specification | Accurate EAN-13 barcode creation complying with GS1 General Specification (Version 8) |
| Programming Language | Completed run in Visual C#, Visual Basic.NET, Managed C++ and Borland Delphi for .NET |
| Text Option | Generate high-quality EAN-13 barcode with customized human-readable text displayed or hidden |
| Check Digit Option | Automatically add Modulo 10 checksum digit for EAN-13 barcodes |
EAN-13 for .NET Ultimate Requirements
Windows OS - Microsoft Windows 7 - Windows Server 2008 - Windows Vista - Windows Server 2003 - Windows XP | Development Environments - .NET 2.0/3.0/4.0 - C#, Visual Basic, Managed C++ and Borland Delphi.NET - Visual Studio 2005/2008/2010 - .NET Windows Forms Application - .NET Class and Console Applications - ASP.NET Web Forms - .NET SSRS and Crystal Report |
Install EAN-13 Generator for .NET Ultimate
- Download BizCode Generator for .NET Ultimate and unzip;
- Add reference: Add "BusinessRefinery.Barcode.Web.dll" or "BusinessRefinery.Barcode.Win.dll" to your project reference;
- Add to toolbox: To add Barcode Control to your .NET Winforms or ASP.NET Web Forms toolbox.
How to Drag & Drop Barcode Control into ASP.NET projects?
- Install ASP.NET Barcode Control;
- Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
- Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes;
- Drag and drop the WebLinearBarcode control into the Forms;
- Run the website and you will see a barcode image generated.
How to Drag & Drop Barcode Control into .NET Winforms projects?
- Install .NET Winforms Barcode Control;
- Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
- Drag and drop the WinLinearBarcode control into the Forms;
- Run the website and you will see a barcode image generated.
How to Generate EAN-13 in .NET with C#, VB.NET Class?
Copy those following code to your .NET projects:
using BusinessRefinery.Barcode;
Linear barcode = new Linear();
barcode.Symbology = Symbology.EAN13;
barcode.Code = "012345678901";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/ean-13-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13
barcode.Code = "012345678901"
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/ean-13-vb-net.gif")
How to Create Your Own EAN-13 in IIS?
- Download BizCode Generator for .NET Ultimate and unzip;
- Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
- Restart IIS, navigate to http://localhost/br_barcode/linear.aspx?code=012345678901&symbology=15;
- Add an image tag <img> into the web page to create EAN-13 barcode image in html or aspx pages, e.g.
<img src="http://localhost/br_barcode/linear.aspx?code=012345678901&symbology=15"/>.
How to Draw EAN-13 Barcodes to Image Files (GIF, JPEG, BMP, PNG, & TIFF)?
Copy those following code to your .NET projects:
using BusinessRefinery.Barcode;
Linear barcode = new Linear();
barcode.Symbology = Symbology.EAN13;
barcode.Code = "012345678901";
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/ean-13-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13
barcode.Code = "012345678901"
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/ean-13-vb-net.gif")
How to draw & print EAN-13 barcodes to .NET objects like Graphics, Stream, Bitmap?
Copy those following code to your .NET projects:
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);
Public Sub drawBarcode2Stream(ByVal fileStream As System.IO.Stream)
Public Sub drawBarcodeOnGraphics(ByVal graphics As
System.Drawing.Graphics)
Public Function drawBarcodeAsBytes() As Byte()
Public Function drawBarcodeOnBitmap() As System.Drawing.Bitmap