Back to Devexpress

Add Bar Codes to Reports

xtrareports-1313-feature-guide-to-devexpress-reports-use-report-controls-use-bar-codes-add-bar-codes-to-reports.md

latest6.2 KB
Original Source

Add Bar Codes to Reports

  • Feb 18, 2026
  • 3 minutes to read

This document explains how to use the XRBarCode report control.

Bar Code Options

To add a barcode to a report, drag the XRBarCode item from the DX.25.2: Report Controls Toolbox tab and drop it onto the report.

Specify the following barcode properties.

Common Errors

The following table explains how to work around errors that may occur when the barcode is used incorrectly.

|

Error

|

Solution

| | --- | --- | |

Control boundaries are too small for the barcode

|

Enable the XRBarCode.AutoModule property and/or increase barcode dimensions.

| |

There are invalid characters in the text

|

Supply data that applies to barcode specification

| |

Invalid text format

|

| |

Binary data can’t be longer than the specified number of bytes

|

Pdf417/QRCode with binary data

Decrease the encoded data quantity (the error specifies the possible maximum).

| |

Incompatible settings: logo size/module/error correction level

|

QRCode with Logo

Try one of the following actions:

|

To process these errors at runtime, call the XRBarCode.Validate method in the XRControl.BeforePrint event handler.

Add Bar Codes in the End-User Report Designer

Tutorials that explain how to use different report elements in EUD Report Designers for WinForms and Web are included in the End-User Documentation online help section:

See Also

Bar Code Recognition Specifics