More Symbologies
Australia Post 4-state Barcode
Australia Post Domestic eParcel Barcode
Aztec Code Barcode
Codabar
Code 11
Code 128
Code 16K
Code 32
Code 39
Code 93
Compact PDF417
Danish Postal 39
Data Matrix
Deutsche Post Identcode Barcode
Deutsche Post Leitcode Barcode
EAN/UPC Add On 2
EAN/UPC Add On 5
EAN-13
EAN-13 CC-A and CC-B Composite Barcodes
EAN-8
EAN-8 CC-A and CC-B Composite Barcodes
EAN-99
EAN-Velocity
FedEx Ground 96
French Postal 39 A/R
GS1-128
GS1-128 (formerly UCC/EAN-128) CC-A, CC-B and CC-C Composite Barcodes
GS1 DataBar-14 Stacked
GS1 DataBar-14 Stacked (Formerly RSS-14 Stacked - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataBar-14 Stacked Omnidirectional
GS1 DataBar-14 Stacked Omnidirectional (Formerly RSS-14 Stacked Omnidirectional - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataBar-14 Truncated
GS1 DataBar-14 Truncated (Formerly RSS-14 Truncated - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataBar Expanded
GS1 DataBar Expanded (Formerly RSS Expanded - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataBar Expanded Stacked
GS1 DataBar Expanded Stacked (Formerly RSS Expanded Stacked - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataBar Limited
GS1 DataBar Limited (Formerly RSS Limited - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataBar Omnidirectional/GS1 DataBar-14
GS1 DataBar Omnidirectional/GS1 DataBar-14 (Formerly RSS-14 - Reduced Space Symbology) CC-A and CC-B Composite Barcodes
GS1 DataMatrix Barcode
HIBC LIC 128
HIBC LIC 39
HIBC PAS 128
HIBC PAS 39
IATA 2 of 5 Barcode
Industrial 2 of 5
Interleaved 2 of 5
ISBN
ISBT 128
ISMN
ISSN
Italian Post 25
ITF-14
JAN-13
JAN-8
Kodak Patch Code Information
Macro PDF417
Matrix 2 of 5
MICR E13-B
Micro PDF417
Micro QR Code
MSI
Numly Number
OPC
PDF417
Pharmacode
PLANET
POSTNET
PZN
QR Code
British Royal Mail 4-State Customer Barcode
Royal TPG Post KIX 4-State Barcode
SCC-14
Semacode
Singapore 4-State Postal Code Barcode
SSCC-18
Swiss PostParcel Barcode
Telepen
UCC/EAN-128
UPC-A
UPC-A CC-A and CC-B Composite Barcodes
UPC-E
UPC-E CC-A and CC-B Composite Barcodes
UPS MaxiCode
USPS Facing Identification Marks
USPS Horizontal Bars
USPS Intelligent Mail / OneCode 4-State Customer Barcode
USPS Intelligent Mail Container Barcode
USPS Package Identification Code (UCC/EAN-128 GS1-128)
USPS Package Identification Code (USS Code 128)
USPS Sack Label Barcode
USPS Tray Label Barcode
VICS BOL Barcode
VICS SCAC PRO Barcode

Code 128 Barcode - SQL Server Reporting Services

This Symbology is 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, Code 128A, Code 128B, Code 128C

Overview
Code 128 is a linear bar code symbology capable of encoding the full 128-character ASCII character set and extended character sets. This Symbology includes a checksum digit for verification, and the barcode may also be verified character-by-character verifying the parity of each data byte. It has been widely implemented in many applications where a relatively large amount of data must be encoded in a relatively small amount of space.
Code 128 Code Sets
  • Code Set A (or Chars Set A) includes all of the standard upper case U.S. alphanumeric keyboard characters and punctuation characters together with the control characters, (i.e. characters with ASCII values from 0 to 95 inclusive), and seven special characters.
  • Code Set B (or Chars Set B) includes all of the standard upper case alphanumeric keyboard characters and punctuation characters together with the lower case alphabetic characters (i.e. characters with ASCII values from 32 to 127 inclusive), and seven special characters.
  • Code Set C (or Chars Set C) includes the set of 100 digit pairs from 00 to 99 inclusive, as well as three special characters. This allows numeric data to be encoded as two data digits per symbol character, at effectively twice the density of standard data.
Code 128 Special characters
The last seven characters of Code Sets A and B (character values 96 - 102) and the last three characters of Code Set C (character values 100 - 102) are special non-data characters with no ASCII character equivalents, which have particular significance to the bar code reading device.

Sample of a Code 128 Barcode

Sample of a Code 128 Barcode with Bearer Bars

How to create Code 128 barcodes using Barcode Professional for

ASP.NET/Windows Forms/Reporting Services/Compact Framework WPF/Silverlight  
Note: Please refer to the Class Reference documentation for more information about the properties and methods stated in this document.
In order to get a Code 128 barcode image, please follow these steps:
  • Set the Symbology property to Code128
  • Set the Code128CharSet property to one of the following values depending on your needs:
    • Auto: Barcode Professional will automatically switch between code sets to encode the ASCII values.
    • A: Barcode Professional will use the Char Set A which only supports ASCII values from 0 to 95
    • B: Barcode Professional will use the Char Set B which only supports ASCII values from 32 to 127
    • C: Barcode Professional will use the Char Set C which only supports pairs of digits
    • Barcode Professional allows explicit switching between Code 128 Char Sets. Read more about how it works.
  • Setting up dimensions and quiet zones:
    • Set the BarWidth and BarHeight properties (Values are expressed in Inches)
    • Set the QuietZoneWidth property (Value is expressed in Inches)
    • Set the TopMargin and BottomMargin properties (Values are expressed in Inches)
  • Set the Code property with the value to encode.
  • Setting up the Bearer Bars if needed:
    • Set the BearerBarStyle property to Frame, or HorizontalRules
    • Set the BearerBarWidth property (Value is expressed in Inches)
  • Barcode Professional will automatically generate and append the checksum value.
    • Note: In this Symbology the checksum won't appear in the human readable text.
    • Tip: You can disable this behavior by setting up to False the AddChecksum property.
Example of a Code 128 barcode images
Code property = ABCD 12345 abcd and Code128CharSet property = Auto will produce the following barcode image:
Code property = ABCD 12345 abcd and Code128CharSet property = Auto and BearerBarStyle property = Frame and HorizontalRules will produce the following barcode images:
  
Code property = ABCD 12345 and Code128CharSet property = A will produce the following barcode image:
Code property = 12345 abcd and Code128CharSet property = B will produce the following barcode image:
Code property = 001122334455 abcd and Code128CharSet property = C will produce the following barcode image:
Explicit switching between Code 128 Char Sets
You can handle how the data must be encoded specifying some special chars that represent each Code 128 Char Set. The special chars that tell to Barcode Professional what Code Set must be used to encode the data that follows it are these:
  • É (Alt+0201) which indicates that the Char Set to use must be A
  • Ê (Alt+0202) which indicates that the Char Set to use must be B
  • Ë (Alt+0203) which indicates that the Char Set to use must be C
Important Note: When you specify that the data must be encoded using Char Set C, then the number of chars after it must be even!
Example of explicit switching between Code 128 Code Sets
Suppose you need to encode 3 alpha chars using Char Set A and 10 numeric digits using Char Set C. You can get it by setting up the following properties:
  • Set the Symbology property to Code128
  • Set the Code128CharSet property to Auto
  • Set the Code property to ÉABCË1234567890 (Notice the É (Alt+0201) char indicating that the data that follows it must be encoded using Char Set A, and the Ë (Alt+0203) char indicating that the data that follows it must be encoded using Char Set C)
 Copyright © 2003 - 2010 Neodynamic S.R.L. All rights reserved.