View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Add Bar Codes to a Report

Overview

To insert a bar code into a report, drag the Bar Code item from the Toolbox onto the report’s area.

After creating the bar code, select the bar code type (symbology) in the Bar Code Tools toolbar tab’s Symbology gallery.

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

Main Options

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

To specify the bar width (a bar code’s resolution), use the following options:

The following are some additional bar code options:

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.

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 bar codes.