Back to Devexpress

Barcode Recognition Specifics

eud-eud-for-devexpress-reports-reporting-for-web-report-designer-use-report-elements-use-bar-codes-bar-code-recognition-specifics.md

latest3.2 KB
Original Source

Barcode Recognition Specifics

  • Feb 09, 2026
  • 4 minutes to read

This document describes the main specifics of barcode recognition and how to resolve the most frequently encountered issues when working with barcodes.

Choose an Appropriate Barcode Type

Selecting an appropriate barcode type (symbology) depends on your specific business requirements and the applied industrial standards.

In general, consider using Barcode 2 of 5 Interleaved for encoding digits and Barcode 39 for encoding the full range of ASCII characters.

Insert the Function Code Characters (FNC) or the Application Identifier into a Barcode

Some encodings enable you to insert a special FNC1 character for separating application identifiers from the rest of the barcode.

According to the GS1 specification, the FNC1 character is always inserted at the first position of the encoded data. Other identifiers can be inserted manually using the default “ # “ character.

Although you can use any ASCII character as the FNC1 placeholder, it will not be a part of the encoded data as it does not have any direct ASCII representation.

For the Code 128 symbology, you can also define FNC2-4 characters.

For the list of the available application identifiers, refer to the official documentation at www.gs1.org.

Specify the Barcode Resolution on Export to Third-Party Formats

At present, only export to PDF preserves the original barcode in its vector form. Export to other formats will keep only the rasterized version of a barcode (with the default DPI set to 96 ).

For XLSX and XLS export, the output resolution can be set up manually using the Rasterization Resolution property.

Specify the DPI of the Device Used to Print the Bar Code

The Target Device Dpi property allows you to specify the DPI of the device on which you wish to print your barcode. The XRBarCode control automatically adjusts bar density based on this property’s value.

Use the Target Device Dpi property to ensure that the bar code is scanned correctly on the target device. This is especially important if your printing device has a non-standard DPI setting.

Common Issues

This document section provides solutions to the most common issues that you may encounter when creating barcodes.

  • The barcode is too “dense”

  • The barcode is correctly displayed on the preview but it is not scanned

  • The barcode is correctly displayed on the preview but it is scanned incorrectly

  • The “There are invalid characters in the text” error occurs