Enum Code128EncodeMode

Code128EncodeMode enumeration

Encoding mode for Code128 barcodes. Code 128 specification.

public enum Code128EncodeMode

Values

NameValueDescription
Auto0Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
CodeA1Encode codetext only in 128A codeset.
CodeB2Encode codetext only in 128B codeset.
CodeC4Encode codetext only in 128C codeset.
CodeAB3Encode codetext only in 128A and 128B codesets.
CodeAC5Encode codetext only in 128A and 128C codesets.
CodeBC6Encode codetext only in 128B and 128C codesets.

Examples

Thos code demonstrates how to generate code 128 with different encodings

[C#]
//Generate code 128 with ISO 15417 encoding
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "ABCD1234567890");
generator.Parameters.Barcode.Code128.Code128EncodeMode = Code128EncodeMode.Auto;
generator.Save(@"d:\save\rec\code128Auto.png", BarCodeImageFormat.Png);

//Generate code 128 only with Codeset A encoding
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "ABCD1234567890");
generator.Parameters.Barcode.Code128.Code128EncodeMode = Code128EncodeMode.CodeA;
generator.Save(@"d:\save\rec\code128CodeA.png", BarCodeImageFormat.Png);

See Also