How to Generate Code 128 in .NET WinForms
How to Generate & Print Linear Code 128 Barcode Images in .NET WinForms
- Compatible with ISO / IEC 15417 (2nd edition ) for accurate 1D Code 128 output
- Mature barcode encoder developed entirely in C# for .NET Framework 2.0/3.0/4.0
- Full integratation into Microsoft Visual Studio 2005/2008/2010
- Linear Code 128 barcode generation in .NET Windows Forms applications
- Programmatically generate Code 128 A, Code 128 B, Code 128 C in C# & VB.NET class library
- Support printing Code 128 barcodes in GIF, BMP, PNG, JPEG/JPG & TIFF image formats
- Provide permanent and royalty-free developer licenses for Code 128 Barcode Creation SDK
.NET WinForms Code 128 Barcode Generator Introduction
Code 128 Barcode Introduction in WinForms
Code 128, also known as ANSI/AIM 128, ANSI/AIM Code 128, USS Code 128, Uniform Symbology Specification Code 128, Code 128 Code Set A, Code 128 Code Set B, Code 128 Code Set C, is a high-density barcode symbology widely used in non-retail field such as internal company management, production assembly and logistic control, etc.
Code 128 Encodable Characters
- Standard ASCII characters: 0-127 including A-Z, a-z, 0-9 and special characters
- Extended ASCII characters: 128-255
Download .NET WinForms Code 128 Barcode SDK
Try now to download KA.Barcode for .NET WinForms free evaluation. "KeepAutomation.Barcode.Windows.dll" is included to generate Code 128 barcode image. We offer User Manual to guide you for barcode generation. And you should carefully read the End User License Agreement. The generated barcode image will include a "KA Barcode" watermark randomly. Add Code 128 Barcode in .NET Windows Forms
- Right click in "Toolbox" in Visual Studio and select "Choose Items..."
- Click button "Browse..." to choose "KeepAutomation.Barcode.Windows.dll" from the unzipped package.
- Add "BarCodeControl" in Visual Studio Toolbox to Form1.
- Choose Code128 barcode type in Properties window and a Code 128 barcode image is generated.
- You can customize barcode image settings in the "Properties" window.
Create Code 128 in .NET WinForms Using C# or VB.NET
- Download and unzip the evaluation version of Code 128 barcode dll in .NET WinForms.
- Add "KeepAutomation.Barcode.Windows.dll" to your project reference.
- Copy demo C# or VB code below.
C# Sample code
BarCode code128 = new BarCode(); code128.Symbology = KeepAutomation.Barcode.Symbology.Code128Auto; code128.CodeToEncode = "Code128"; code128.generateBarcodeToImageFile("C://barcode-code128-csharp.png"); VB Sample code
Dim code128 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
code128.Symbology= KeepAutomation.Barcode.Symbology.Code128Auto code128.CodeToEncode = "Code128" code128.generateBarcodeToImageFile("C://barcode-code128-vbnet.png")
How to Generate Code 128 with Different Code Set in .NET WinForms
Code 128 barcode has three different code sets: Code set A, Code set B, and Code set C. Code set A encodes characters with ASCII values from 0 to 95 inclusive, and seven special characters; Code set B encodes characters with ASCII values from 32 to 127 inclusive, and seven special characters.; and Code set C encodes numeric pairs from 00 to 99 inclusive, as well as three special characters. Users may select different Code sets using "Symbology" property. C# Sample code
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128A; code128.Symbology = KeepAutomation.Barcode.Symbology.Code128B; code128.Symbology = KeepAutomation.Barcode.Symbology.Code128C; VB Sample code
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128A code128.Symbology = KeepAutomation.Barcode.Symbology.Code128B code128.Symbology = KeepAutomation.Barcode.Symbology.Code128C
How to Generate GS1 Compatible Code 128 in .NET WinForms
Code 128 is able to convert to GS1 compatible Code 128 by applying the "FNC1" property. Users may make it work using "FNC1" property and setting it to "FNC1.First", which designates data formatted in accordance with the GS1 General Specifications. At the same time, the "TildeEnabled" should set to true. C# Sample code
barcode.FNC1 = KeepAutomation.Barcode.FNC1.First; barcode.TildeEnabled = true; VB Sample code
barcode.FNC1 = KeepAutomation.Barcode.FNC1.First barcode.TildeEnabled = true |