BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Mature barcode creating SDK
  • Support .NET 2.0/3.0/4.0
  • 100% developed in C#.NET
  • Dynamic barcodes support
  • User-defined controls provided
How to Encode Code 128 Data in C#
C#.NET Code 128 Generator is high-quality Code 128 barcode generating SDK for Visual C# developers for creating & printing Code 128 barcodes without any distortion in their C#.NET projects, including C#.NET Winforms, C#.NET Web Forms, C#.NET console applications, C#.NET Crystal Report and SSRS.
All ASCII characters (Standard & Extended) can be easily and accurately encoded into Code 128 barcodes according to ISO/IEC-15417 (2nd edition 2007-06-01) with C#.NET Code 128 Generator. Besides, it also support Code 128 Sub set A, B, C to be used for Code 128 creation in C#.NET. More details of Code 128 sample codings, please see:
Code 128 Data Related Properties

Symbology

Users may easily generate Code 128 barcodes with Subset A, Subset B and Subset C using Symbology property.

C#.NET Code 128 Barcode encodes:
  • - Code128Auto: encodes all encodable characters of Code 128
  • - Code128A: encodes all of the standard upper case alphanumeric characters and punctuation characters together with the control characters
  • - Code128B: all of the standard upper case alphanumeric characters and punctuation characters together with the lower case alphabetic characters
  • - Code128C: the set of 100 digit pairs from 00 to 99 inclusive, as well as three special characters

Code

Users may easily change Code 128 barcode data string with variable length using Code property.

ProcessTilde

Users may simply encode some special characters in Code 128 barcode with a tilde characters "~" using ProcessTilde property.
  • - 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126; Strings from "~256" to "~299" are unused.
  • - 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535); Strings from "~665536" to "~699999" are unused.

Human-readable Text

Users may simply customize human-readable text and enable it under generated Code 128 barcode using DisplayText and Textfont properties.
Customize Code 128 Barcode Data in C#.NET
If you want to encode Code 128 data in C#.NET, be sure that you have installed:
Encode Code 128Barcode Data in .NET Project Using C# Class
Copy those following code onto your C#.NET projects:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE128Auto;
barcode.Code = "Code 128";

barcode.drawBarcode2DataFile("c:/code-128-csharp.gif");
Encode Code 128 Barcode Code Set in C#.NET
Copy those following code onto your C#.NET projects:
barcode.Symbology = Symbology.CODE128C;
barcode.Code = "14646416";
Control Code 128 Barcode Data Length
Code default value in Barcode Generator for .NET Ultimate is "".

Copy those following code to change Code 128 barcode data length:
barcode.Code = "5648";
Display Code 128 Barcode Human-Readable Text
DisplayText default value in Barcode Generator for .NET Ultimate is true.

TextFont default value in Barcode Generator for .NET Ultimate is new Font("Arial", Font.PLAIN, 11).

Copy those following code to show human-readable text with customized font style:
barcode.DisplayText = true;
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold);
Encode Code 128 Barcode Data with "~" in C#.NET
ProcessTilde default value in Barcode Generator for .NET Ultimate is false.

Copy those following code to encode Code 128barcode data with "~":
barcode.ProcessTilde= true;
barcode.Code = "~189";