ASP.NET Code 2 of 5 Barcode Generator Library
Completely support Code 2 of 5 barcode generation in .NET 2.0, 3.0, 4.0 Create standard Code 2 of 5 barcode quickly with integrated ASP.NET web barcode control Create ASP.NET Code 2 of 5 barcode image using Visual C#.NET class Create ASP.NET Code 2 of 5 barcode image using Visual Basic.NET class Support flexible Code 2 of 5 barcode image formats, including JPEG, GIF, PNG, etc A reliable ASP.NET Barcode Generator DLL supported by over 1000 developers Code 2 of 5 Barcode Overview in ASP.NET
Code 2 of 5 is also known as 2 of 5 Industrial, 2/5 Industrial, 2 of 5 Standard, 2/5 Standard, Code 2/5, 2 of 5, C 2 of 5.
In telecommunication, Code 2 of 5 (two-out-of-five code) is an m of n code that provides exactly ten possible combinations. Thus it is popular for representing decimal digits using five bits. There are several ways to assign weights to each bit.
Example of Code 2 of 5 Barcode Creation in IIS
Here are simple steps for Code 2 of 5 barcode generation in IIS.
Copy "barcode" folder and its contents in the unzipped trial package to your IIS folder. Create a new virtual directory named as barcode in your IIS. Link the virtual directory to the above "barcode" folder. Restart IIS and navigate to:http://YourDomain:port/barcode/linear.aspx?Type=6&Data=1423478954 Example of Code 2 of 5 Barcode Creation in ASP.NET Through Controller
Here are simple steps for Code 2 of 5 barcode generation in ASP.NET through controller.
Download and unzip the trial package of ASP.NET Code 2 of 5 Barcode Generator. Add BarcodeLib.Barcode.ASP.NET.dll to the Toolbox . Go to "barcode" folder in the unzipped package and copy "linear.aspx" and "linear.aspx.cs" to your project folder. Drag and drop LinearASPNET to ASP.NET project in your Visual Studio. Select Code 2 of 5 in Type item under Properties window. Reset other properties of Code 2 of 5 through the Properties window and debug. Example of ASP.NET Code 2 of 5 Barcode Creation in Web Forms
Add reference (BarcodeLib.Barcode.ASP.NET.dll ) to your ASP.NET project. Use the following C# and VB demo codes for Code 2 of 5 barcode generation. Demo C# codes for Code 2 of 5 barcode generation in ASP.NET
BarcodeLib.Barcode.Linear code25 = new BarcodeLib.Barcode.Linear(); code25.Type = BarcodeType.CODE2OF5; code25.Data = "1423478954" ; code25.UOM = UnitOfMeasure.PIXEL; code25.BarWidth = 2; code25.BarHeight = 80; code25.ImageWidth = 320; code25.ImageHeight = 100; code25.ImageFormat = System.Drawing.Imaging.ImageFormat.Png; // Save barcode image into your system code25.drawBarcode("c://code25.png" ); Demo VB codes for Code 2 of 5 barcode generation in ASP.NET
Dim code25 As New BarcodeLib.Barcode.Linear() code25.Type = BarcodeType.CODE2OF5 code25.Data = "1423478954" code25.UOM = UnitOfMeasure.PIXEL code25.BarWidth = 2 code25.BarHeight = 80 code25.ImageWidth = 320 code25.ImageHeight = 100 code25.ImageFormat = System.Drawing.Imaging.ImageFormat.Png ' Save barcode image into your system code25.drawBarcode("c://code25.png" ) More ASP.NET Barcode Types
Support Linear Barcodes:
Codabar
Code 2 of 5
Code 11
Code 39
Code 93
Code 128
EAN 8
EAN 13
GS1-128/EAN-128
Interleaved 2 of 5
ITF14
MSI Plessey
Onecode
Planet
Postnet
RM4SCC
UPC-A
UPC-E
Support Matrix Barcodes:
QR Code
PDF 417
Data Matrix
Other Linear Barcodes:
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 .
Other 2D Barcodes:
Data Matrix ,
PDF 417 ,
QR Code .
Other Related Barcode Generation Articles
ASP.NET C# & VB.NET Barcode Generation Guide
ASP.NET Linear and 2D barcode encoding guide: