@abrazasoft/thermal_printer_vuejs 中文文档教程
首先下载适用于 Windows 的插件并运行它
https://mega.nz/file/ne4izbZa#mzZwvqsk_uOBl8K5Z-uhQYlOE9dPzqiBkv1NXBPGFbY
安装模块
npm i @abrazasoft/plugin_impresora
import module
import printerplugin from "@abrazasoft/thermal printer_vuejs”
如何获取打印机列表
getprinters(){
printer_plugin.obtenerImpresoras().then((printers) => {
console.log(printers)
});
}
如何发送打印机
async imprimir(){
var nombreImpresora = "printername";
var api_key = "123456"
if (!nombreImpresora) return;
const conector = new printer_plugin();
conector.fontsize("2")
conector.textaling("center")
conector.text("Store Name")
conector.fontsize("1")
conector.text("Siempre viva #1234")
conector.text("tax854522")
conector.feed("3")
conector.textaling("left")
conector.text("Fecha: Miercoles 8 de Septiembre 2021 13:50")
conector.text("qty. desc amount")
conector.text("-------------------------------------------------------------------")
conector.text("1- KG Sinker nails $110")
conector.feed("1")
conector.fontsize("2")
conector.textaling("center")
conector.text("Total: $275")
conector.barcode_128("holamundo")
conector.feed("5")
conector.cut("0")
const resp = await conector.imprimir(nombreImpresora, api_key);
if (resp === true) {
console.log(resp);
} else {
console.log("Error: "+resp)
}
}
您可以执行这些操作
-text
-qr
-fontsize ("1"), ("2"), ("3")
-feed ("5"), ("10"), ("15")
-textaling ("center"), ("left"), ("right")
-barcode_ean13 (format 12 digits) example barcode_ean13("978020137962")
-barcode_39 example ----------- barcode_39("ABC-1234")
-barcode_128 ("any string")
-img_url --------------- img_url("https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png")
-cut ("0")
您需要帮助吗? abrazasoft@gmail.com
first download the plugin for windows and run it
https://mega.nz/file/ne4izbZa#mzZwvqsk_uOBl8K5Z-uhQYlOE9dPzqiBkv1NXBPGFbY
install module
npm i @abrazasoft/plugin_impresora
import module
import printerplugin from "@abrazasoft/thermalprinter_vuejs"
how get printer list
getprinters(){
printer_plugin.obtenerImpresoras().then((printers) => {
console.log(printers)
});
}
How send printer
async imprimir(){
var nombreImpresora = "printername";
var api_key = "123456"
if (!nombreImpresora) return;
const conector = new printer_plugin();
conector.fontsize("2")
conector.textaling("center")
conector.text("Store Name")
conector.fontsize("1")
conector.text("Siempre viva #1234")
conector.text("tax854522")
conector.feed("3")
conector.textaling("left")
conector.text("Fecha: Miercoles 8 de Septiembre 2021 13:50")
conector.text("qty. desc amount")
conector.text("-------------------------------------------------------------------")
conector.text("1- KG Sinker nails $110")
conector.feed("1")
conector.fontsize("2")
conector.textaling("center")
conector.text("Total: $275")
conector.barcode_128("holamundo")
conector.feed("5")
conector.cut("0")
const resp = await conector.imprimir(nombreImpresora, api_key);
if (resp === true) {
console.log(resp);
} else {
console.log("Error: "+resp)
}
}
you can perform these actions
-text
-qr
-fontsize ("1"), ("2"), ("3")
-feed ("5"), ("10"), ("15")
-textaling ("center"), ("left"), ("right")
-barcode_ean13 (format 12 digits) example barcode_ean13("978020137962")
-barcode_39 example ----------- barcode_39("ABC-1234")
-barcode_128 ("any string")
-img_url --------------- img_url("https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png")
-cut ("0")
do you need help with something? abrazasoft@gmail.com
更多
你可能也喜欢
- 22.static 中文文档教程
- @0xproject/asset-buyer 中文文档教程
- @168-cli/webpack-html-standard-template 中文文档教程
- @4c/react-carousel 中文文档教程
- @aabegg/table 中文文档教程
- @aalu1418/sponsored-erc721 中文文档教程
- @aasaam/information 中文文档教程
- @abusix/storm-react-diagrams 中文文档教程
- @activediscourse/podcast-parser 中文文档教程
- @activewidgets/experimental 中文文档教程