7
addCommand..................................................................................................................................... 86
Print class (Constructor) ...................................................................................................................... 87
openPrinter........................................................................................................................................... 88
closePrinter ........................................................................................................................................... 90
sendData.............................................................................................................................................. 91
getErrorStatus ....................................................................................................................................... 93
getPrinterStatus .................................................................................................................................... 94
■ Printer Search API ...............................................................................................................95
start........................................................................................................................................................ 96
stop........................................................................................................................................................ 97
getResult ............................................................................................................................................... 98
getStatus............................................................................................................................................... 99
Command Transmission/Reception.........................................101
■ Programming ....................................................................................................................101
Programming Flow............................................................................................................................. 101
Opening a Device Port ..................................................................................................................... 102
Sending Data ..................................................................................................................................... 102
Receiving Data .................................................................................................................................. 103
Closing the Device Port..................................................................................................................... 103
Exception handling ........................................................................................................................... 104
■ Command Transmission/Reception API Reference ......................................................105
open.................................................................................................................................................... 105
close .................................................................................................................................................... 107
write..................................................................................................................................................... 108
read..................................................................................................................................................... 110
start...................................................................................................................................................... 111
stop...................................................................................................................................................... 112
getResult ............................................................................................................................................. 113
Appendix....................................................................................115
■ Printer specifications ........................................................................................................115
TM-T88V ............................................................................................................................................... 115
TM-T70.................................................................................................................................................. 117
TM-P60................................................................................................................................................. 119
TM-U220............................................................................................................................................... 121