Git Product home page Git Product logo

chn-escpos's People

Contributors

baka397 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chn-escpos's Issues

钱箱指令

钱箱默认指令用\x1B\x70\x00\xFF\xFF是不是更通用一些?
现在的\x1b\x70\x07我测试时失败的

我测试时POS打印机是STRP的SP-POS58

打印机链接问题

我是刚学没多久node,也不是很懂软件这一块。楼主我想问问我买了佳博的L80160,是通过wifi链接局域网吗?之后node.js怎么链接这个打印机来调用你这个封装好的插件来进行打印。

打印模板

//标签说明:"<BR>"为换行符,"<CB></CB>"为居中放大,"<B></B>"为放大,"<C></C>"为居中,"<L></L>"为字体变高
        //"<W></W>"为字体变宽,"<QR></QR>"为二维码,"<CODE>"为条形码,后面接12个数字

            content := "<CB>测试打印</CB><BR>"
            content += "名称      单价  数量 金额<BR>"
            content += "--------------------------------<BR>"
            content += "饭       10.0   10  10.0<BR>"
            content += "炒饭      10.0   10  10.0<BR>"
            content += "蛋炒饭     10.0   100 100.0<BR>"
            content += "鸡蛋炒饭    100.0  100 100.0<BR>"
            content += "西红柿炒饭   1000.0 1   100.0<BR>"
            content += "西红柿蛋炒饭  100.0  100 100.0<BR>"
            content += "西红柿鸡蛋炒饭 15.0   1   15.0<BR>"
            content += "备注:加辣<BR>"
            content += "--------------------------------<BR>"
            content += "合计:xx.0元<BR>"
            content += "送货地点:广州市南沙区xx路xx号<BR>"
            content += "联系电话:13888888888888<BR>"
            content += "订餐时间:2014-08-08 08:08:08<BR>"
            content += "<QR>http://www.dzist.com</QR>"

用这种标记语言去解析,感觉会不会好一点?一般日常会用到的格式也就这几个

开钱箱疑问

'\x1B\x70\x00\xFF\xFF' 是不是需要改成[0x1B,0x70,0x00,0xFF,0xFF]
Buffer.from('\x1B\x70\x00\xFF\xFF').length==7
Buffer.from([0x1B,0x70,0x00,0xFF,0xFF]).length==5
虽然两个都能成功,我觉得初衷应该是发送后者。

我是win10 64位环境,想通过nw.js开发POS系统

但是我执行npm install chn-escpos后提示错误了
:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: 项目“node_printer.vcxproj”的平台无效。平台为“x64”。您会看到此消息的可能原因是,您尝试在没有解决方案文件
的情况下生成项目,并且为此项目指定了并不存在的非默认平台。 [D:\workspa
ce-frontend\nwjs-sdk\app\v0.0.1\node_modules\printer\build\node_printer.vcxproj]

win10环境是不是编译很复杂,有编译好的吗?多谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.