Determines what type of barcode will be used in the field.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public enum BarCodeEnum
Visual Basic
Public Enumeration BarCodeEnum

Members

Member nameDescription
None No barcode.
Code39 Alpha-numeric, (Code 3 of 9).
Code93 Alpha-numeric.
Code128 Alpha-numeric, denser than Code39 and required at least 6 characters.
CodeI2of5 Numeric only.
Codabar Numeric only, slightly denser than Code39.
PostNet Numeric only, US Postal Service.
Ean13 EAN-13 barcode. EAN-13 encodes 12-digit article codes (plus one check digit created by the control).
Ean8 EAN-8 barcode. EAN-8 encodes 7-digit article codes (plus one check digit created by the control).
UpcA UPC-A barcode. UPC-A encodes 11-digit article codes (plus one check digit created by the control).
UpcE

UPC-E is a variation of UPC-A which allows for a more compact barcode by eliminating "extra" zeros. Since the resulting UPC-E barcode is about half the size as an UPC-A barcode, it is generally used on products with very small packaging.

When using the UpcE encoding, set the Text property to an 11-digit string as if you were using the UpcA encoding.

Note that not all UpcA codes can be encoded in UpcE. If the manufacturer code ends with "000", "100", or "200", the product number must be <= 900. If the manufacturer code ends with "00" but not with "100", "200", or "300", then the product number must be <= 90. If the manufacturer code ends with "0" but not with "00", then the product number must be <= 9. If the manufacturer code does not end with "0", then the product number must be between 5 and 9.

Remarks

Use the members of this enumeration to set the value of the BarCode property in the Field class.

Examples

The following code sets the barcode format for the field to alpha-numeric:

Copy CodeVisual Basic
Me.c1r.Fields(0).BarCode = C1.C1Report.BarCodeEnum.Code93
Copy CodeC#
this.c1r.Fields[0].BarCode = C1.C1Report.BarCodeEnum.Code93;

See Also