.NET Code 39 Barcode Generator
How to create, generate, print barcode code 39 label using c#, vb.net in asp.net mvc, windows application with free example source code

How to generate, display, print code 39 barcode labels in asp.net mvc, windows, crystal reports, rdlc reports.

  • Strong-named assemblies written in C#.NET with full integration into .NET applications
  • Compatible with latest ISO/IEC specification for Code 39 for valid barcode output
  • Support generating and printing Code 39 barcode image with C#.NET & VB.NET programming
  • Draw and save Code 3 of 9 barcodes locally in Png, Jpeg, Gif, Tiff & Bmp/Bitmap image formats
  • Adjust bar width, bar height, color, human-readable text, orientation, resolution & check digit
  • High-quality Code 39 barcode image generation that supports all printers
.NET Code 39 Barcode Generator Overview
Code 39 Barcode Encoder Component SDK is a barcode functionality of KA.Barcode Generator for .NET Suite, which can efficiently add Code 39 generation features into various .NET projects like ASP.NET webform, windows applications, C#, VB.NET class & console applications, etc. Besides, the user-friendly interface provides easy customization for the generated barcode images.
Code 39 Introduction
Code 39, also named ANSI/AIM Code 39, ANSI/AIM Code 39, Uniform Symbology Specification Code 39, USS Code 39, USS 39, Code 3/9, Code 3 of 9, USD-3, LOGMARS, Alpha39, Code 39 Extended, and Code 39 Full ASCII, is a linear barcode widely used in non-retail environments.
Code 39 Encodable Characters for .NET Suite
  • Alphanumeric data: 0-9, A-Z
  • Special characters: space $ % + - . /
  • Start/sop character *
  • Code 39Ex can encode all ASCII characters: 0-9, A-Z, a-z, and special characters
Download Code 39 Barcode DLL for .NET Suite
Above all, please KA.Barcode for .NET Suite and unzip it. You will find the following dlls:
  • KeepAutomation.Barcode.Crystal.dll
  • KeepAutomation.Barcode.RDLC.dll
  • KeepAutomation.Barcode.SSRS2005.dll
  • KeepAutomation.Barcode.SSRS2005CRI.dll
  • KeepAutomation.Barcode.SSRS2008.dll
  • KeepAutomation.Barcode.SSRS2008CRI.dll
  • KeepAutomation.Barcode.Web.dll
  • KeepAutomation.Barcode.Windows.dll
How to Generate Code 39 Barcode in C# or VB.NET
Switch to the Visual Studio Solution Explorer window, and add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" as reference of the project. Then copy the following C# or VB.NET sample code to the page where the Code 39 is generated.
C# Sample code
     BarCode code39 = new BarCode();
code39.Symbology = KeepAutomation.Barcode.Symbology.Code39;
code39.CodeToEncode = "CODE39";

VB Sample code
     Dim code39 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

code39.Symbology = KeepAutomation.Barcode.Symbology.Code39
code39.CodeToEncode = "CODE39"

How to Generate Code 39 Barcode in ASP.NET Project
  1. Please download and unzip the trial package.
  2. Then, create a new ASP.NET project and copy "barcode.aspx" and "barcode.aspx.cs" to the newly created project.
  3. Next, add "KeepAutomation.Barcode.Web.dll" to your project reference.
  4. Drag and drop "BarCodeControl" in Toolbox to the aspx page where your Code 39 barcode image is to be generated.
  5. Choose Code39 barcode type through the Properties panel.
  6. Run you ASP.NET web project and your Code 39 barcode image is generated.
How to Generate Code 39 in Microsoft Internet Information Services (IIS)
  1. Copy the "barcode" folder from the unzipped folder to IIS web application folder.
  2. Create a new virtual directory named "barcode" and then restart IIS.
  3. Testing: open your web browser and navigate to "http://YourDomain:port/barcode/barcode.aspx?code-to-encode=CODE39&symbology=4" (symboloy: Code39 = 4, Code39ex = 5).
  4. Add the image tag into target pages to insert barcodes in html or aspx pages:
    <img src="http://YourDomain:port/barcode/barcode.aspx?code-to-encode=CODE39&symbology=4"/>
  5. Change settings of your created Code 39 barcode image in the above url.
How to Generate Code 39 Barcode in .NET WinForms
  1. Create a WinForms project in your Visual Studio.
  2. Add reference (KeepAutomation.Barcode.Windows.dll) to your Visual Studio Toolbox.
  3. Drag and drop the BarCodeControl into the form.
  4. Switch to the Properties window and set "Symbology" property to "Code39".
  5. Finally, the Code 39 barcode image is created.
How to Generate Code 39 Barcode in .NET Reports

How to Create Code 39 Barcode Image in Crystal Reports
You are free to download and unzip this trial package to create Code 39 barcode image in Crystal Reports. A tutorial is offered to help you.
How to Create Code 39 Barcode Image in RDLC Reports
You are free to download and unzip this trial package to create Code 39 barcode image in RDLC Reports. A tutorial is offered to help you.
How to Create Code 39 Barcode Image in Reporting Services
You are free to download and unzip this trial package to create Code 39 barcode image in Reporting Services. A tutorial is offered to help you.
Code 39 Property Settings
Class Attribute HTTP Attribute Default Value Note
Symbology symbology Code128Auto Barcode symoblogy type
CodeToEncode code-to-encode "128" Barcode value to encode.
ChecksumEnabled checksum-enabled false ChecksumEnabled property is optional. Modulo 43 will be applied, if ChecksumEnabled property is true.
ImageFormat image-format ImageFormat.Png Barcode encoded image format.
Barcode Size
AutoSizeAdjust auto-size-adjust false If true, barcode X, Y module will be auto-adjusted.
BarcodeUnit barcode-unit BarcodeUnit.Pixel Unit of measure for all size related settings. 0: pixel; 1: inch; 2: cm.
X x 1 Barcode module width (narrow bar).
Y y 50 Linear barcode bar height / 2D barcode module height.
LeftMargin left-margin 0 Barcode image left margin.
RightMargin right-margin 0 Barcode image right margin.
TopMargin top-margin 0 Barcode image top margin.
BottomMargin bottom-margin 0 Barcode image bottom margin.
DPI dpi 72 Barcode image resolution in dpi.
Orientation orientation Orientation.Degree0 Barcode rotation angle.
BarCodeWidth barcode-width 0 Whole barcode width.
BarCodeHeight barcode-height 0 Whole barcode height.
Barcode Text Style
DisplayText display-text true Set to true, displaying barcode value text, otherwise do not display.
DisplayChecksum displace-checksum true Set to true, displaying barcode checksum digit, otherwise do not display.
TextFont text-font new Font(" Arial", 10 f, FontStyle.Regular) Barcode text font style.
TextMargin text-margin 6 Margin between barcode and text.
Code 39 Specific Settings
DisplayStarStop display-start-stop true Set to true, displaying Code 39 Start and Stop character (*).
I i 1.0f Code 39 inter-characters space. It抯 a multiple of X.
WideNarrowRatio wide-narrow-ratio 2.0f Code39 wide bar width vs narrow bar width ratio.
Free Trial DownloadC#/VB Code 39For Web Code 39For Windows Code 39For Reports Code 39Using C#Using VB.NETData Matrix for .NETPDF417 for .NETQR Code for .NETmoreCodabar for .NETCode 128 for .NETEAN-8 for .NETEAN-13 for .NETEAN 128 for .NETIntelligent Mail for .NETInterleaved 2 of 5 for .NETISBN for .NETITF-14 for .NETRM4SCC for .NETUPC-A for .NETUPC-E for .NETmore
KeepAutomation provides complete barcode automation solutions. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.