Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Bar Code

  • Last UpdatedOct 30, 2024
  • 10 minute read

The Bar Code control is used to add bar code to a report.

Note:
The barcode quality can degrade when the report is exported to formats other than PDF. To ensure reliable barcode recognition, print the report directly from an application using the native printing methods.

The Module and Auto-Module properties of a control must be used with care.

On the Properties window, the Bar Code control properties are divided into the following tabs:

Appearance

Alignment

Changes the alignment of the bar code in relation to the control boundaries.

Background Color

Specifies the background colour of controls. The functionality is also available on the Report Designer tab ().

Border Color, Border Dash Style, Border Width and Borders

Specifies border settings for controls.

Font

Specifies the font settings for controls. Some of the functionality is available on the Report Designer tab.

Foreground Color

Specifies the text colour for controls. The functionality is also available on the Report Designer tab ().

Formatting Rules

Displays the Formatting Rules Editor window, used to choose which rules are applied to a report during report generation, and to define the priority of the applied rules.

Location

Specifies the location of the control in report measurement units.

Padding

Specifies indent values used to render the contents of the controls.

Size

Specifies the size of the control in report measurement units.

Style Priority

Defines the priority of various styles (for example, background colour or border colour).

Styles

Defines odd and even styles for the controls, as well as assigning an existing style to the them (or a newly created one).

Behavior

Anchor Horizontally

Specifies the horizontal anchoring style of the control, so that after page rendering it stays attached to the left control, right control, or both. The property setting is useful for data-bound controls located between controls, which are able to resize depending on their contents.

Anchor Vertically

Specifies the vertical anchoring style of the control, so that after page rendering it stays attached to the top control, bottom control, or both. The property setting is useful for data-bound controls located between upper and lower controls, which are able to resize depending on their contents.

Auto-Module

If the check box is selected, the bar code image is stretched to fit the width of the control. If the check box is not selected, the behavior is determined by the Module property.

Keep Together

Specifies whether the contents of the control can be horizontally split across pages. In other words, if the control occupies more space than remains on the page, the property specifies whether the control is split between the current page and the next, or printed entirely on the next page. If the control does not fit on the next page either, the control is split, regardless of the property value.

Module

Specifies the width of the narrowest bar or space in the barcode, in report measurement units.

If the Module property is set too low, the barcode output may be unreadable by a barcode scanner.

If the Auto-Module property check box is not selected, the barcode image can be generated with a Module property larger than the control itself. In this case, the control displays a warning.

Increase the dimensions of the control to resolve the warning.

Orientation

Specifies the content orientation of the control. There are four available orientation options (Normal, Upside Down, Rotate to the Left and Rotate to the Right)

Process Duplicates

Determines the behaviour of the control when the data source contains consecutive repeating records. The records can be processed as is (when the property is set to Leave), suppressed except for the first entry (Suppress) and suppressed with a blank space printed instead of the repeated records (Suppress and Shrink).

Process Null Values

Determines whether to process Null (blank) values if they appear in the control data source. Null values can be processed as is (when the property is set to Leave), suppressed (Suppress) and suppressed with a blank space printed instead of the blank records (Suppress and Shrink).

Scripts

Contains events which can be handled with scripts.

Show Text

Deterines whether to display the numerical value, or only the bar code within the control.

Symbology

Defines the mapping between the bar code text and an image. The bar code control supports only the linear 1D symbologies listed.

Symbology

Description

Codabar

The Codabar is an old format that uses discrete, self-checking symbology, capable of encoding 16 different characters, plus an additional 4 start/stop characters. You should also specify the Start and Stop Symbols and Wide Narrow Ratio properties.

Code11

Code11 also know as USD-8, was developed as a high-density numerical-only symbology. The symbology is discrte and is able to encode the numbers 0 through 9, the dash symbol (-), and start/stop characters.

Code 128

Code128 has been widely implemented. It is a high-density symbology which permits encoding messages of arbitrary lengths of any character of the ASCII character set. The symbology includes a checksum digit for verification. You should also specify Character Set. The recommended setting is Auto Charset.

Code39

Code39 is also known as "3 od 9 code" and "USD-3". It can encode uppercase letters (A through Z), digits (0 through 9) and several specific characters like the $ sign. The Calculate a Checksum and Wide Narrow Ratio (which should be in a range of 2.2-3) properties can be specified.

Code39Extended

This is an extension of Code39, also known as "Full ASCII Code39". It is capable of encoding all 128 characters. The Calculate a Checksum and Wide Narrow Ratio (which should be in a range of 2.2-3) properties can be specified.

Code93

Code93 was designed to supplement and improve Code39. It is an alphanumeric, variable length symbology, providing higher reliability and density than Code39. The Calculate a Checksum property can be specified.

Code93Extended

This enables encoding of all 128 ASCII characters using Code93's "Full ASCII Mode". This is accomplished by using the $, /, % and + symbols as a "shift" characters. The Calculate a Checksum property can be specified.

EAN128

UCC/EAN128 symbology has the newer name GSI-128. It is based on the Code128 standard, additionally specifying the Spplication Identifiers for data selections within the code. It includes best before dates, batch numbers, quantities, weights and other attributes. The Calculate a Checksum property can be specified (Auto Charset is the recommended value). The FNC1 Functional Character property defines a symbol that is not included in a bar code when met in text, but used to generate the application identifiers. The Human-Readable Text property., when set to Yes, inserts parentheses into the text below the bar code for better readability.

AN13

The EAN13 barcode contains 13 digits, no letters or other characters. The first two or three digits represent the country. The leading zero actually signifies the USA and UPC-A coding. The last digit is the checksum digit. The control calculates it automatically and not should be present in the control's text string. So make sure that the text for this symbology contains no more than 12 digits. If less digits are supplied, the string is padded with zeroes on the left.

EAN8

EAN8 is a shortened version of the EAN13-code. It includes a 2 or 3 digit country code, a 4 of 5 dara digits (depending on the length of the country code) and a checksum digit. The control calculates checksum digit automatically and it should not be present in the control's text string. So make sure that the text for this symbology contains no more than 7 digits. If less digits are supplied, the string is padded with zeroes on the left.

Industrial2of5

The Industrial (or not interleaved) 2 of 5 code is a numerical, low-density symbology, based on two-out-of-five code. The Calculate a Checksum and Wide Narrow Ratio (which should be greater than or equal to 2.5) properties can be specified.

Interleaved2of5

The interlever 2 of 5 sode is a higher-densitiy numerical symbology, based on atwo-out-of-five code. The Calculate a Checksum and Wide Narrow Ratio (which should be greater than or equal to 2.5) properties can be specified.

Matrix2of5

A variant of non-interleaved 2 of 5 code. It is a numerical symbology. The Calculate a Checksum and Wide Narrow Ratio (which should be greater than or equal to 2.5) properties can be specified.

MSI

MSI symbology, also known as Modifies Plessey, is a low-density, numerical only symbology. To specify the checksum, use the MSi Checksum property it can be set to None, Modulo 10 and Double Modulo 10.

PostNet

The symbology is used by the United States Postal Service to assist in directing mail. The code usually contains the Zip-Code and delivery point number. Unlike most other barcodes, PostNet actually encodes data in the height of the bars.

UPCA

The UPCA barcode contains 12 digits, no letters or other characters. The first digit is the prefix signifying the product type.

UPC-E0

This symbology is a variation of the UPCA which allows for a more compact barcode by eliminating "extra" zeros. The first digit is always zero, the last digit is a checksum digit of the original UPC-A code. Not every UPC-A Code can be transformed into UPC-E0. For example, the control's text string "4210000526" is displayed by UPC-E0 symbology as "04252614" and represents the "042100005264" UPC-A code (check digit included).

UP-E1

This symbology is a variation of the UPCA which allows for a more compact barcode by eliminating "extra" zeros. The first digit is always a 1, the last digit is a checksum digit of the original UPC-A code. Not every UPC-A Code can be transformed into UPC-E1. For example, the control's text string "4210000526" is displayed by UPC-E0 symbology as "14255611" and represents the "142100005261" UPC-A code (check digit included).

UPCSupp2

This is a supplemental two-digit barcode.Make sure that the control's string contains two digits.

UPCSupp5

This is a supplemental five-digit barcode, commonly used to indicate the suggested retail price of a book. Make sure that the control's string contains five digits.

Visible

Specifies whether the control is visible when using the print preview.

Data

(Data Bindings)

If the current report is bound to data, the property is used to bind control properties (Bookmark, Navigation URL, Tag and Text) to a data field obtained from the report data source, and to apply a format string.

Tag

Adds additional information to a control; for example, the Id, by which the control can then be accessed via scripts.

If the current report has a data source, the Tag property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property and from the Tag > Binding drop-down list, select the required data field.

Text

Defines a string to be encoded as a bar code. Whether or nor this value is displayed within the control is specified using the Show Text property.

When a bar code is selected, entered text is automatically added to the control

If the content does not conform to the rules of the specified symbology (determined by the Symbology property), the control displays a warning, or automatically correct the input string by padding it with zeroes or only accepting an acceptable number of characters for display.

If the current report has a data source, the Text property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property and from the Text > Binding drop-down list, select the required data field.

Text Format String

Displays the Format String Editor window, which is used to manage and customise the format of the control using a predefined format style.

Miscellaneous

(Name)

Determines the name of the control, by which it can be accessed in the Report Explorer, Properties window or via scripts.

Bookmark and Parent Bookmark

These properties are used to create a hierarchical structure within a report called a document map.

If the current report has a data source, the Bookmark property can be bound to a data field, obtained from the data source. To do this, expand the Data > Data Bindings drop-down list and select the required data field.

Navigation URL and Navigation Target

Use the Navigation URL property to specify a URL for web browser navigation when the control is clicked. The web browser displays a page in a window or a frame as specified in the Navigation Target property.

Note: A URL must have an appropriate prefix for example, 'http://'). Cross-references can be created within the report by assigning the name of the target control to the Navigation URL property, and setting the Navigation Target property to ‘_self'.

If the current report has a data source, the Navigation URL property can be bound to a data field obtained from the data source. To do this, expand the Data > Data Bindings drop-down list and select the required data field.

Snap Line Margins

Specifies the margins for the control, which are maintained when the control is aligned using snap lines.

Favorites

Right-click on the Favorites tab and select Edit Favorite Property List to display the Favorite Properties Editor, which is used to customise the available properties on the Favorites tab.

Refer to Conditionally Modify Control Display, Styles Concepts, Handle Events via Scripts, Display Values from a Database (Bind Report Controls to Data), Add Bookmarks and Create Hyperlinks for further information.

In This Topic
TitleResults for “How to create a CRG?”Also Available in