You can be printing in minutes with just a couple lines of code. It's as simple as creating your intent, adding your ESC formatted string and start the (service) intent.
Print From Web in an android device web. Just make a link:
a href="com.fidelier.printfromweb://$biguhw$Print From Web$intro$$small$Print small letter$intro$->$intro$->$intro$->$intro$$intro$$intro$$intro$$cut$$intro$"Test print from web/a
Open and close a tag
Include helpers for ESC commands like
Easy font size selection.
$small$ For small size
$smallh$ For small size with double hight
$smallw$ For small size with double width
$smallhw$ For small size with double hight and width
$smallu$ For small size underline
$smalluh$ For small size with double hight underline
$smalluw$ For small size with double width underline
$smalluhw$ For small size with double hight and width underline
$big$ For big size
$bigh$ For big size with double hight
$bigw$ For big size with double width
$bighw$ For big size with double hight and width
Add u to underline
$cut$ To cut the paper
$drawer$ To open the first drawer
Example:
String dataToPrint="$big$This is a printer test$intro$posprinterdriver.com$intro$$intro$$cut$$intro$";
Intent intentPrint = new Intent();
intentPrint.setAction(Intent.ACTION_SEND);
intentPrint.putExtra(Intent.EXTRA_TEXT, dataToPrint);
intentPrint.setType("text/plain");
this.startActivity(intentPrint);
Free version could print ads on your ticket
免費玩APP & WEB POS PRINTER DRIVER APP玩免費
免費玩APP & WEB POS PRINTER DRIVER App
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.3 App下載 | 免費 | 1970-01-01 | 2015-04-21 |