How to Generate & Print Code 2 of 5 Barcode Using VB.NET Class Codes
Indispensable Code 2 of 5 barcode generator sdk for .NET programmers
Compile VB.NET Code 2 of 5 bar coding functions into easy-to-use dll assemblies
Able to generate Code 2 of 5 barcode in VB.NET ASP.NET web & WinForms applications
Generate Code 2 of 5 barcode image in Crystal Reports & RDLC Reports
Create & draw Code 2 of 5 barcode to gif, png, jpeg & bmp image files
Compatible with other 1d & 2d bar coding standards for VB.NET applications
Basic Information about VB.NET Code 2 of 5 Linear Barcode
Code 2 of 5, a very simple linear barcode symbology, is used in air ticket making field. It can only encode numeric characters. As its information carriers are only limited to bars, the data-density of Code 2 of 5 is quite low.
Generating Code 2 of 5 Barcode Using VB.NET Class Codes
If you are looking for free VB.NET codes to generate Code 2 of 5 barcode in .NET applications, the following information will be great useful for you.
Please install one of our VB.NET barcode generator dlls to your project reference and the toolbox.
Use sample VB.NET barcode below to generate Code 2 of 5 barcode in VB.NET project.
Dim code25 AsNew BarcodeLib.Barcode.Linear() code25.Type = BarcodeType.CODE2OF5 code25.Data = "123456"
'You could also adjust other settings of Code 2 of 5, like image format, rotate, image size etc.
'Save barcode image into your system code25.drawBarcode("c:/code25.png")
'Encode Code 2 of 5 barcode & output to byte array byte[] barcodeInBytes = code25.drawBarcodeAsBytes()
'Draw Code 2 of 5 barcode to Graphics object Graphics graphics = ... code25.drawBarcode(graphics)
'Generate Code 2 of 5 barcode and output to HttpResponse object HttpResponse response = ... code25.drawBarcode(response)
'Output created Code 2 of 5 barcode to Stream object Stream stream = ... code25.drawBarcode(stream)
Creating Code 2 of 5 Barcode in VB.NET ASP.NET Web Applications
If you are going to generate Code 2 of 5 barcode in ASP.NET project, our VB.NET barcode generator can help you achieve that in two ways.
First, you have to install "Barcodelib.Barcode.ASP.NET.dll" to your project reference and toolbox.
Then you need copy "linear.aspx" & "linear.aspx.cs" from the folder "barcode" in the trial package to your web folder.
Drag "LinearASPNET" from the Toolbox and drop it on the split part of your aspx page.
Select generated barcode image and adjust its barcode type to Code 2 of 5. Besides, you can also generate a standard Code 2 of 5 barcode using sample VB.NET codes mentioned above.
Generating Code 2 of 5 Barcodes in VB.NET WinForms Project
The operating process is similar to that of generating Code 2 of 5 barcode in ASP.NET web applications.
As usual, you need to add "BarcodeLib.Barcode.WinForms.dll" to your project reference and toolbox.
Then, drag LinearWinForm to your windows form and adjust its type to Code 2 of 5 in Properties Window or you can create a Code 2 of 5 barcode with sample VB.NET codes mentioned above.
Code 2 of 5 VB.NET Barcoding SDK Supported Barcode Types