57
CITIZEN UWP POS Print SDK - Programming Manual
2.3.25. PrintNormalAsync method
Syntax
Task<int> PrintNormalAsync (string data)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT] Meaning
Setting range
data
[IN]
Print data
(Support OPOS escape sequence)
Description
This method is used to print using the escape sequences that are defined in the OPOS.
Please use this if you are familiar with the OPOS.
The supporting escape sequences in this SDK are as follows.
Please refer to specifications of OPOS for the details.
Escape Sequence
Notes
Paper cut
ESC|#P Partial cut (1-99), Full cut (0,100)
Feed and paper cut
ESC|#fP Partial cut (1-99), Full cut (0,100)
Bitmap print
ESC|#B 1-20 (Bitmap image number that is stored in the flash memory of the printer)
After Bitmap printing, print position returns to the initial state (left-justified).
Multi-line feed
ESC|#lF
Unit feed
ESC|#uF
Barcode print
ESC|#R
Font type specification
ESC|#fT
Bold
ESC|bC
Underline
ESC|#uC
Custom color
ESC|#rC Effective only when dedicated 2-color paper is used.
Red
ESC|rC
Effective only when dedicated 2-color paper is used.
Reverse character
ESC|rvC
Standard
ESC|1C
Double width
ESC|2C
Double height
ESC|3C
Quadruple
ESC|4C
Horizontal magnification
ESC|#hC 1-8
Vertical magnification
ESC|#vC 1-8
Centering
ESC|cA
Right adjustment
ESC|rA
Normal
ESC|N
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
await printer.PrintNormalAsync( "\u001b|4C- Receipt -\n" );