56
CITIZEN UWP POS Print SDK - Programming Manual
2.3.24. PrintDataAsync method
Syntax
Task<int> PrintDataAsync (byte[] data)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT] Meaning
Setting range
data
[IN]
Send data
Description
This method is used to send data bytes to the printer directly.
It is usually not necessary, please use if you want to send ESC commands directly to the printer.
If you want to use, please be careful so as not to affect the other methods.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
// Sound the buzzer (The printer must support buzzer.)
await printer.PrintDataAsync(new byte[]{0x1b, 0x1e});