VpeSetQRCodeMode

<< Click to Display Table of Contents >>

Navigation:  Barcode Functions (2D) >

VpeSetQRCodeMode

Previous pageReturn to chapter overviewNext page

[Professional Edition and above only]

Sets encoding mode for QR Codes. The QR Code provides four different encoding modes, the user data capacity depends on the encoding and error correction level:

Encoding Modes and Data Capacity

Numeric code only

max. 7,089 characters

Alphanumeric

max. 4,296 characters

Binary (8 bits)

max. 2,953 bytes

Kanji/Kana

max. 1,817 characters

VPE chooses automatically the best encoding. Only for Kanji you need to specify that the Kanji encoding shall be used.

void VpeSetQRCodeMode(

VpeHandle hDoc,

int mode

)

VpeHandle hDoc

Document Handle or VPE Object Handle

int mode

the encoding mode

Constant Name

Value

Description

VBAR2D_QRCODE_MODE_DEFAULT

2

VPE chooses automatically between numeric, alphanumeric and binary mode

VBAR2D_QRCODE_MODE_KANJI

3

Text is encoded in Kanji (Shift-JIS)

Default:

VBAR2D_QRCODE_MODE_DEFAULT

 

See also:

"Barcodes (2D)" in the Programmer's Manual