Code 39 Barcode Data Character Encoding in BIRT
Code 39 supports two encoding modes, both configured in Report Item Property.
Code 39 Standard Mode
Supports 43 valid characters:
- Numeric digits: 0 - 9
- Uppercase letters: A - Z
- Symbols: -, $, %, space, ., /, +
- Dedicated Start/Stop character (*)
Code 39 Full ASCII Mode
- Supports full 128 ASCII characters (ISO 646 IRV), including lowercase letters.
- Set Type property to CODE39EX (extended mode) in Report Item Property.
- Used for reports requiring lowercase, special control characters, and Locale/Internationalization support.
Code 39 Check Digit (MOD43) Configuration
Code 39 does not enable check digit by default. MOD43 check digit enhances data security.
- Enable check digit: set AddCheckSum = true in Report Item Property.
- The BIRT Report Engine automatically calculates and appends the MOD43 check digit.
- To hide check digit in HRI (human readable interpretation): set ShowCheckSumChar = false.
Note: The check digit is only used for verification and will not be decoded as valid data by scanners.
Hide Check Digit in HRI
- Enable the check digit but hide it from the HRI (human readable interpretation).
- Set ShowCheckSumChar = false in Report Item Property.
- This keeps the barcode valid while cleaning up displayed text.
Code 39 Start/Stop Characters Display
Code 39 uses asterisk (*) as fixed Start/Stop characters, which should not be included in raw data.
- Show asterisks in HRI: set ShowStartStopInText = true.
- Hide asterisks in HRI: set ShowStartStopInText = false.
- This property is fully configured in Report Item Property without additional Script.
Code 39 Barcode Dimension & Size Settings
All size parameters are set in Report Item Property, compatible with BIRT Master Page and layout rules:
- UOM (Unit of Measure): PIXEL / CM / INCH
- X: Width of narrow bar module (minimum value defined by application standards)
- Y: Height of bar module
- N: Wide/narrow bar ratio (valid: 2.0 - 3.0; default = 2)
- I: Intercharacter gap (minimum = X; multiple of X)
- LeftMargin / RightMargin: Quiet zone (minimum width = 10X)
Customize Code 39 Bar, Space Appearance
You can adjust bar width ratio and character spacing for better scanning and readability.
Wide/Narrow Bar Ratio (Property N)
- Valid range: 2.0 to 3.0 (inclusive)
- Default value: 2.0
- Set directly in Report Item Property; higher values improve scanning accuracy for low-resolution printers.
Intercharacter Gap (Property I)
- Defines the space between two encoded characters.
- Value is a multiple of narrow bar width (X).
- Default = 1.0; adjust to 2.0 for clearer character separation.
Common Asked Questions
What is Code 39 barcode used for?
Code 39, also known as Code 3 of 9, is the first barcode symbology to encode both numbers and letters (Upper case letters only). It is most commonly used in
the inventory, government, military and electronics industries.
Using BIRT barcode generator plugin, you can create and insert a new Code 39 or Code 39 extension barcode into report template. Standard or regular Code 39 barcode encodes upper-case letters only. To encode lower-case letters, you need choose Code 39 extend barcode.
To create Code 39 extended barcodes in Report Designer, change
Using BIRT barcode generator plugin, you can create and insert a new Code 39 or Code 39 extension barcode into report template. Standard or regular Code 39 barcode encodes upper-case letters only. To encode lower-case letters, you need choose Code 39 extend barcode.
To create Code 39 extended barcodes in Report Designer, change
Barcode Type to Code 39 extension
Can Code 39 barcode encode lowercase letters in BIRT reports?
Code 39 barcode standard version does not support lowercase letters encoding.
However the Code 39 extended version does. OnBarcode BIRT Barcode Generator plugin does support both Code 39 standard and extend versions.
In BIRT report Property Editor, change property
Barcode Type to value Code39, by default it will create standard Code 39 barcode images.
To create Code 39 extended barcodes in reports, change property Barcode Type to value Code39 extension in Eclipse BIRT reports application.
What is the minimum size for Code 39 barcode?
Code 39 barcodes need meet the following barcode dimension size requirements in BIRT report Property Editor
- X: the mimumum bar width (X module) is defined by the application specification.
- Y: the mimumum bar height (Y module)
What is the ratio of narrow to wide bars in Code 39 barcode?
The valid ratio of Code 39 narrow to wide bars is from 1:2 to 1:3 inclusive. You can apply the
Code 39 bars ratio configure through report designer property
N using BIRT Barcode in Eclipse BIRT report designer.
What is the difference between barcode 39 and barcode 93?
Bath Code 39 and Code 93 are linear (1d) barcode formats.
Code 93 is an updated version of Code 39. Code 93 is a higher-density barcode type compared to Code 39.
BIRT barcode supports both Code 39 and Code 93 barcodes generation and printing in Eclipse BIRT reporting applications.
What is the difference between Code 39 and Code 128 barcodes?
Bath Code 39 and Code 128 are linear (1d) barcode symbologies.
Code 128 requires a compulsory checksum digit. If the Code 128 barcode is damaged, it may still be scannable. Code 39 checksum is optional.
If the Code 39 barcode without checksum is damaged, it won't be scannable.
In BIRT report template, you can generate Code 39 barcode with or without check sum applied using BIRT Barcode Generator plugin.
