Printqrcodeasync Method - Citizen CT-D101 Series Programming Manual

Hide thumbs Also See for CT-D101 Series:
Table of Contents

Advertisement

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
data
moduleSize
ECLevel
alignment
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
Example
await printer.PrintQRCodeAsync(
"http://www.citizen-systems.co.jp/printer/index.html",
4,
ESCPOSConst.CMP_QRCODE_EC_LEVEL_L,
ESCPOSConst.CMP_ALIGNMENT_LEFT );
[IN/OUT]
Meaning
[IN]
Barcode data
[IN]
Module width
[IN]
Error correction level
[IN]
Barcode alignment
CITIZEN UWP POS Print SDK - Programming Manual
Setting range
1 - 16 (dots)
Expressed in the unit of measure given by
MapMode
(default dots).
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%)
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
of measure given by
"2.3.1. Return
44
MapMode
(default dots).
value" for the error code except it.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents