The Bar Code control is used to add bar code into a report.
In the Property Grid, the
Bar Code control's properties are divided into the following groups.
Displays the Formatting Rules Editor, used to choose which rules should be applied to the control during report generation, and define the precedence of the applied rules. Refer to
Conditionally Change a Control's Appearance for further information.
Used to change the alignment of the control's text. This option is also available on the Formatting Toolbar. To define the alignment of the barcode image, use the
Alignment property.
When this property is set to Yes, the
Barcode image is stretched to fit the entire control's width. When this option is set to No, this behaviour is determined by the
Module property.
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, this property specifies whether this Bar Code should be split between the current page and the next, or whether it will be printed entirely on the next page. If a control does not fit on the next page either, then the
Bar Code will be split despite this property's setting.
If the Auto-Module property is set to
No, the barcode image could be generated with the setting of
Module property is larger than the control itself. In this case, the control displays a warning, as illustrated below:
The barcode image within the control can be rotated using the Orientation property to specify one of four possible orientations (Normal, Upside Down, Rotate to the Left and Rotate to the Right).
The Symbology property defines the mapping between
Barcode text and an image. The
Bar Code control supports only linear 1D symbologies. They are listed in the following table:
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 dropdown list, select the required data field.
If the content does not conform to the rules of the specified symbology (determined by the Symbology property), the control may display a warning, as in the picture below, 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 in the
Text.Binding dropdown menu, select the required data field. Refer to
Display Values from a Database (Bind Report Elements to Data) for further information.
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 Bindings) property and from the
Bookmark.Binding dropdown list, select the required data field.
Use the Navigation URL property to specify a URL for web browser navigation when a user clicks the control. The web browser displays a page in a window or a frame as specified by the
Navigation Target property.
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 Bindings) property and from the
Navigation URL.Binding dropdown menu, select the required data field.