How to Generate EAN13 Barcodes in ASP.NET Web, Website, IIS Applications
Created ASP.NET EAN-13 barcodes are compatible with industry standards
Professional ASP.NET EAN-13 Barcode Generator 100% built in C#
Easy to redistribute, without activation key or registration code
Provide various options to output created ASP.NET EAN-13 barcode images
Offer flexible settings to adjust created ASP.NET EAN-13 barcode images
Provide various image formats to draw generated EAN-13 in image files
ASP.NET Linear EAN-13 Barcode Overview
Linear EAN-13 is widely used by manufacturers to encode information of their products. EAN-13 is comprised of 13 numeric data (including a check digit), encoding information like number system, manufacturer code and product code. With this linear barcode, we can track any product globally. And all EAN-13 Barcodes created by our ASP.NET EAN-13 Barcode Generator Library are absolutely compatible with standards listed in GS1 General Specification.
Add ASP.NET EAN-13 Barcode Generator Component
The installation of this ASP.NET EAN-13 Barcode SDK contains two parts:
Install Barcodelib.Barcode.ASP.NET.dll to ASP.NET project reference.
Click "Add Reference..." in "Solution Explorer" and locate Barcodelib.Barcode.ASP.NET.dll in the trial.
Install Barcodelib.Barcode.ASP.NET.dll to Visual Studio Toolbox.
Click "Choose Items..." in the Toolbox and find Barcodelib.Barcode.ASP.NET.dll in the trial package. After you click "OK", you could see four terms added in the toolbox, just like the following picture.
Create 1D EAN-13 Barcode in ASP.NET Web Application
After you install the ASP.NET EAN-13 Generator DLL, you could create EAN-13 barcode in few clicks
Find the folder barcode in the downloaded trial and copy files "linear.aspx", "linear.aspx.cs" to your folder where your ASP.NET website project is located.
Drag LinearASPNET from the toolbox to the split part of your aspx page, then you will see a Code 128 barcode on the form. Now, you may change the barcode type to EAN-13.
Adjust EAN-13 barcode parameters in the Properties Window.
Produce EAN-13 Barcode in ASP.NET in C# or VB Codes
You could refer to the following sample codes when generating EAN-13 in ASP.NET Website with C# or VB.
Dim ean13 AsNew BarcodeLib.Barcode.Linear() ean13.Type = BarcodeLib.Barcode.BarcodeType.EAN13 ean13.Data = "123456789123"
With our ASP.NET EAN-13 Barcode Generator SDK, you could also create EAN-13 barcode in IIS.
Copy the folder barcode in the downloaded trial to yout IIS folder, like C:\ interpub.
Set a new virtual directory (named barcode) in your IIS, and link it to the above "barcode" folder pasted in inetpub.
Restart IIS and navigate to: http://YourDomain:port/barcode/linear.aspx?Type=11&Data=123456789123&LeftMargin=12&RightMargin=12 To make further adjustment for the EAN-13 image, please view web stream URL parameters for EAN-13 here: .NET EAN-13 Barcode Property Settings.
If you want to add this EAN-13 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=11&Data=123456789123&LeftMargin=12&RightMargin=12/> This method will not generate any barcode images in your IIS server side.
ASP.NET EAN-13 Barcode Generator Supported Barcodes