1 QR Code

  • Nội dung bài viết

    3 minutes to read: QR Code

A Quick Response (QR) Code is a two-dimensional code. QR scanners, mobile phones with a camera, and smartphones can read this code.


Refer to the following article for more information: QR Code.

Available Characters

QR Code can encode numeric, alphanumeric, and binary data. The table below shows the available characters for each mode:


Available Characters


0, 1, 2, 3, 4, 5, 6, 7, 8, 9


0-9, A-Z (upper-case only), space, $, %, *, +, -, ., /, :


ISO 8859-1

Use the barcode’s CompactionMode property to specify mode (Numeric, AlphaNumeric, or Byte) that should be used to encode data. Choose mode that corresponds to the characters your data contains.

Add the Bar Code to a Report

  1. Drag the XRBarCode item from the DX.21.2: Report Controls tab and drop it onto the report.
  2. Set the XRBarCode control’s Symbology property to QRCode (an object of the QRCodeGenerator type).
  3. Specify common barcode properties and properties specific to QR Code .

Specific Properties

  • XRBarCode.AutoModule/BarCodeControl.AutoModuleGets or sets whether the Module property value should be calculated automatically based upon the barcode’s size.
  • CompactionModeGets or sets whether numeric, alphanumeric or byte mode should be used to encode the barcode’s data.
  • ErrorCorrectionLevelGets or sets the amount of redundancy built into the bar code’s coding, to compensate for calculation errors.
  • VersionGets or sets the bar code’s size.
  • LogoSpecifies the image that overlays the QR code.
Bạn có biết  Mã vạch tờ khai Hải Quan

Runtime Example

The following code creates the QR Code barcode and specifies its properties.

View Example: How to add a bar code to a report

  • vietnamsino.com
  • vietnamsino.com

The code example below shows how to create a report with the QR Code barcode:

  • C#
  • VB.NET

See Also How to: Display QR Bar Code in BarCodeControl