How to use js to call the printer device for printing?

such as the question, how to call the printer through js, print the specified content, may be text, may also be pictures, etc.,
has not done the discussion, if there is a successful example is better.

Dec.16,2021

use print to print api globally, depending on what is on the current page.


you can refer to jqprint


to use the webSocket protocol specifically for WEB printing. Without language environment restrictions, mainstream browsers can support it! Accurate printing millimeter precision, easy to achieve POS receipts, invoice sets and so on. Multiple languages support development languages such as ASP, ASP.NET, PHP, JSP. Super compatible and independent operation, Bamp S and Cmax S are compatible, printing can be adjusted immediately after initiating a request. Visual design report style editing, WYSIWYG, so that there is no difficult report. https://www.nbnat.com

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a548-2c21b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a548-2c21b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?