Add Barcodes to Reports

<< Click to Display Table of Contents >>

Navigation:  User Interface (UI) Elements > Report Designer > Use Barcodes >

Add Barcodes to Reports

Add Barcodes to a Report

Overview

To insert a barcode into a report, drag the Barcode item from the Toolbox onto the report's area.

barcode1

After creating the barcode, select the barcode type (symbology) in the Barcode Tools toolbar tab's Symbology gallery.

barcode2

After specifying the symbology, you can customize the type-specific options of the barcode, which are listed in the Property Grid under the Symbology property.

barcode3

Main Options

You can use the Binary Data property to supply the data that a barcode should encode.

To specify the bar width (a barcode's resolution), use the following options:

Automatically calculate the bar width according to a barcode's dimensions by enabling the Auto Module option; Provide a fixed bar width value using the Module property.

The following are some additional barcode options:

barcode4Use the barcode's Text property to provide accompanying text. The Show Text property allows you to show or hide this text.

barcode5Use the Orientation property to rotate a barcode.

barcode6Use the Padding property to specify the indent between bars and the barcode's inner boundaries.

Bind to Data

You can bind the bar code's Text property to a data field obtained from a report's data source. Click the control's smart tag, expand the Expression drop-down list and select the data field.

barcode5

You can also click the Expression option's ellipsis button to invoke the Expression Editor. This editor allows you to construct a complex binding expression with two or more data fields.

Common Errors

The following section explains how to work around the most frequently encountered errors related to the incorrect use of barcodes.

The following error message is shown in place of the barcode if the control's dimensions are too small to fit the barcode with its specified resolution.

barcode6

To get rid of this error, enable the Auto Module property and/or increase the barcode's dimensions.

The following error message appears when the data supplied to a barcode contains characters that are not supported by this barcode type.

barcode7

To avoid this error, supply data that applies to a particular barcode specification.