Generate Code 39 barcode images for .NET applications, like ASP.NET, Windows Forms, .NET Class Library & Console Application
Insert & add Code 39 barcode images in SQL Server Reporting Services applications (2005 & 2008)
Create & add Code 39 linear images in .NET Crystal Reports and Client RDLC Reports
Encode & save ISO/IEC compatible Code 39 barcodes in image files as well as byte stream objects
Support user-defined Code 39 image generation and adjustment in VB.NET programming
Support royalty free redistribution with the purchase of provided .NET developer license
VB.NET Linear Code 39 Barcode Introduction
In specific applications, 1D barcode Code 39 may be called Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3.
Barcode Standard Compatibility: Code 39 barcodes created by this VB.NET Barcode Generator Library is in accordance with ISO / IEC 16388 (2nd edition 2007-05-15) barcode specification.
In 1974, Dr. David Allais and Ray Stevens of Intermec created Code 39 barcode. Now, this linear barcode type is often used in Non-retail environments, U.S. Government and military use and Health Industry Bar Code Council (HIBCC)).
Code 39 has 43 encodable characters that includes A-Z, 0-9, 7 special chars [-(Dash), $(Dollar), %(Percentage), (Space), .(Point), /(Slash), +(Plus)], and 1 start/stop characters (*).
How to Generate Code 39 Linear Barcode Using VB.NET Class Library?
How to Install
Add barcode dll component to your VB.NET project reference.
Click "Project" and select "Add Reference...".
Click "Browse" to find Barcodelib.Barcode.ASP.NET.dll or BarcodeLib.Barcode.WinForms.dll in the unzipped file, and click "OK" button.
Add BarcodeLib barcoding dlls to Visual Studio Toolbox.
Right click in Toolbox and select "Choose Items...".
In the pop-up "Choose Toolbox items" window, click "Browse..." to select either BarcodeLib.Barcode.WinFroms.dll or Barcodelib.Barcode.ASP.NET.dll.
Click "OK" and now four items are listed in VS Toolbox, for example: LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm. And now it's done!
How to Implement
Now, you can copy the free VB.NET demo code below to create a Code 39 barcode image in .NET Framework Class Library.
Imports BarcodeLib.Barcode
Dim code39 AsNew BarcodeLib.Barcode.Linear() code39.Type = BarcodeType.CODE39 code39.Data = "CODE39-99887766"
' Generate Code 39 barcode and output to HttpResponse object HttpResponse response = ... code39.drawBarcode(response)
' Generate Code 39 barcode and output to Stream object Stream stream = ... code39.drawBarcode(stream)
Above Code 39 sample code is written in Visual Basic
How to Generate Code 39 Bar Codes in VB.NET ASP.NET Web Applications?
To generate Code 39 barcodes in ASP.NET, you may follow the steps below (Two Methods Provided).
VB.NET Code 39 barcode generation through BarcodeLib Buildin ASP.NET Barcode Application.
Unzip the downloaded evaluation package, and copy barcode folder and its contents to your IIS folder, eg. C:\inetpub.
Create a new virtual directory in your IIS, name it "barcode", and connect it to the above "barcode" folder in inetpub.
Restart IIS for a Code 39 streaming test.Simply navigate to: http://YourDomain:port/barcode/linear.aspx?Type=7&Data=CODE39-99887766&LeftMargin=6&RightMargin=6 Above is the generated Code 39 barcode image. If you need to adjust other Code 39 dimensions, please view more web stream URL parameters for Code 39 here: .NET Code 39 Barcode Property Settings.
You can also insert this Code 39 image in your aspx or html page, simply pass the url to IMG tag or src value. For example: <img src=http://YourDomain:port/barcode/linear.aspx?Type=7&Data=CODE39-99887766&LeftMargin=6&RightMargin=6 /> This method will not generate any barcode images in your IIS server side.
VB.NET Code 39 barcodes encoding through ASP.NET Web Form Controller.
Intall ASP.NET barcode controller to your barcoding project by adding reference.
Add barcode library to your Visual Studio toolbox.
Open barcode in your unzipped trial package, and copy files "linear.aspx", "linear.aspx.cs" to the aspx page where you will be generating Code 39 images.
Now you can drag LinearASPNET to your ASP.NET web site, and change Code 39 settings through properties window on the right.
Run the project and a Code 39 barcode is generated on your aspx pages.
Or you may directly generate Code 39 barcodes using above free sample VB.NET code for your ASP.NET applications.
How to Create Linear Code 39 Images in VB.NET Windows Applications?
Add reference to BarcodeLib.Barcode.WinForms.dll to your barcoding project.
BarcodeLib.Barcode.WinForms.dll to your Visual Studio toolbox.
You can simply drag the LinearWinForm to your windows form, and a Code 39 barcode is generated.
Or you may directly create Code 39 barcodes using above free sample VB.NET code for your .NET Windows Forms applications.
VB.NET Barcode Generator Control Supporting Symbologies