44
CITIZEN UWP POS Print SDK - Programming Manual
2.3.13. PrintQRCodeAsync method
Syntax
int PrintQRCodeAsync (string data, int moduleSize, int ECLevel, int alignment)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT]
Meaning
Setting range
data
[IN]
Barcode data
moduleSize
[IN]
Module width
1 - 16 (dots)
Expressed in the unit of measure given by
ECLevel
[IN]
Error correction level
CMP_QRCODE_EC_LEVEL_L: Level L (7%)
CMP_QRCODE_EC_LEVEL_M: Level M (15%)
CMP_QRCODE_EC_LEVEL_Q: Level Q (25%)
CMP_QRCODE_EC_LEVEL_H: Level H (30%)
alignment
[IN]
Barcode alignment
CMP_ALIGNMENT_LEFT: Left alignment
CMP_ALIGNMENT_CENTER: Center alignment
CMP_ALIGNMENT_RIGHT: Right alignment
Other Values:
Distance from the left-most print column to
the start of the barcode. Expressed in the unit
Description
This method is used to print QRCode barcode.
Please refer to the Command Reference of the printer for details on each parameter.
The designation of CMP_ALIGNMENT_CENTER and CMP_ALIGNMENT_RIGHT of the Barcode alignment
on the page mode is ignored.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
await printer.PrintQRCodeAsync(
"http://www.citizen-systems.co.jp/printer/index.html",
4,
ESCPOSConst.CMP_QRCODE_EC_LEVEL_L,
ESCPOSConst.CMP_ALIGNMENT_LEFT );