KA.Barcode Generator for .NET Suite
How to Print Code 39 in C# with Valid Data
Complete C#.NET source code to generate, print Code 39 barcodes using Barcode Generator for .NET

C# Code 39 barcode generator: encode, create, generate Code 39 data with checksum using c# with free example

  • Complete C#.NET sample code to guide you encode valid data for 1d Code 39 images
  • Support Code 39, Extended Code 39 generating and printing in .NET framework
  • Provide barcode SDK for implementing barcodes as you wish, like UPC-E Excel, Intelligent Mail VB.NET, .NET WinForms UPC-E, C# Code 128, etc.
  • Compatible with .NET development environments like Visual Studio 2005, 2010, etc
  • Dynamically stream linear Code 39 barcode images in ASP.NET web sites, IIS, Winforms using C#.NET
  • All Code 39 barcodes printed are strictly compatible with barcode specifications for scanners & printers
  • Generating high-quality Barcode 3 of 9 pictures for all printers with adjustable image resolution
  • Encodable character set includes full alphanumeric A-Z, 0-9, and special characters
  • Draw and export high-quality Code 39 C#, Code 39 .NET, C# Code 128 barcodes as you wish
  • User-friendly interface to allow easy Code 39 barcoding and printing for C#, VB.NET programmers
This page is a detailed generation guide for Code 39 images with KA.Barcode Generator for .NET Suite. Follow the samples below and developers can easily input valid data for Code 39 bar codes, create Code 39 images in .NET winforms, and insert barcodes in ASP.NET websites. Here are two more tutorials for Code 39 resizing and image setting in C#.NET class library.
Code 39 Introduction
Code 39 is a bidimensionally decodable 1D barcode symbology also named 3 of 9 Barcode, Barcode 3 of 9, ASNI/AIM Code 39, USD-3, USS Code 39, Code 3/9, Barcode 3 of 9, Code 3 of 9, USD-3, Code 39 Extended, Code 39 Extension.

Code 39 Valid Data

  • Alphanumeric: upper-case letters A-Z, 0-9 (ASCII characters 65-90, and 48 to 57 inclusive)
  • Special characters: space $ % + - . /
  • Start/stop character: * (asterisk)

Code 39 Extension Valid Data

  • All 128 ASCII characters, including A-Z, a-z, 0-9, and special characters.

Code 39 and Code 39 Extension Valid Length

  • Both Code 39 and Code 39 Extension have a variable data length.
Easy to use drag & drop implementation for Interleaved 2 of 5 generation; Creating, streaming Interleaved 2 of 5 barcode images in ASP.NET web...
Stream barcode images in ASP.NET web sites & web forms application using free Visual C# .NET trial. KA.Barcode Generator for ASP.NET ....
How to Generate QR Code Image in VB.NET Projects. VB.NET source code to generate, print QR Code in different image formats using .NET Barcode...
Reliable matrix QR Code barcode control dll used world ....
Barcode.QRCodeDataMode = KeepAutomation.Barcode.QRCodeDataMode.Byte barcode. CodeToEncode = "*&^%". VB.NET Example to Encode QR Code...

Install KA.Barcode Generator for .NET Suite into Project

  1. 1.
  2. 2.
    Add Reference: Add "KeepAutomation.Barcode.Window.dll" to your .NET WinForms project references.
  3. 3.
    Add to Toolbox: Add BarCodeControl to your .NET Visual Studio toolbox.
Copy the following C#.NET Code onto your project to create a Code 39 barcode image
using KeepAutomation.Barcode.Bean;

BarCode code39= new BarCode();
code39.Symbology = KeepAutomation.Barcode.Symbology.Code39;
code39.CodeToEncode = "39DATA";
code39.X = 3;

How to Encode Numeric Data for Code 39

code39.CodeToEncode = "3939"; 

How to Encode Alphaumeric Data for Code 39

code39.CodeToEncode = "CODE39"; 

How to Encode Valid Data for Code 39 Extension

using KeepAutomation.Barcode.Bean;

BarCode code39= new BarCode();
code39. Symbology = Symbology. Code39ex;
code39.CodeToEncode = "Code39";

How to Hide Start/Stop Character for Code 39 in the Text

The ISO/IEC Code 39 specification require asterisks (*) as star/stop characters for Code 39 barcode images, which are automatically added by KA.Barcode Generator for .NET. If you want to hide it in the human-readable text, simply set false in the following C# Code.
code39.DisplayStartStop = false;