Table of Contents
1. Introduction ........................................................................................................................................................ 7
1.1. Document target range .............................................................................................................................. 7
1.2. System summary ........................................................................................................................................ 7
1.3. Supported printer models .......................................................................................................................... 7
1.4. Printer setting ............................................................................................................................................ 9
1.6. Install instruction .................................................................................................................................... 20
1.7. Definition method .................................................................................................................................... 22
2. Printer Control ................................................................................................................................................. 25
2.1. Program structure .................................................................................................................................... 25
2.2. Functions list ............................................................................................................................................ 26
2.3. Library interfaces ..................................................................................................................................... 28
2.3.1. Return value ......................................................................................................................................... 28
2.3.2. Constructor ........................................................................................................................................... 29
2.3.3. ConnectAsync method ......................................................................................................................... 30
2.3.4. DisconnectAsync method ..................................................................................................................... 32
2.3.5. SetEncoding method ............................................................................................................................ 33
2.3.7. Status method ...................................................................................................................................... 35
2.3.8. PrintTextAsync method ........................................................................................................................ 37
2.3.9. PrintBitmapAsync method .................................................................................................................... 38
2.3.15. CutPaperAsync method ...................................................................................................................... 46
2.3.16. UnitFeedAsync method ...................................................................................................................... 47
2.3.17. MarkFeedAsync method ..................................................................................................................... 48
2.3.22. ClearPrintArea method ....................................................................................................................... 54
2.3.24. PrintDataAsync method ...................................................................................................................... 56
2.3.26. GetVersionCode method..................................................................................................................... 58
2.3.27. GetVersionName method .................................................................................................................... 59
2.3.30. SetLog method ................................................................................................................................... 62
2.3.31. PageModeArea property ..................................................................................................................... 63
CITIZEN UWP POS Print SDK - Programming Manual
4