samlan
V2EX  ›  问与答

php 能检测打印机打印状态的吗?

  •  
  •   samlan · Oct 21, 2014 · 4084 views
    This topic created in 4223 days ago, the information mentioned may be changed or developed.
    最近做erp时 有这样一个问题:如何在打印完成后(指实际已输出标签),把订单转换成打印订单?
    9 replies    2014-10-21 17:39:25 +08:00
    cevincheung
        2
    cevincheung  
       Oct 21, 2014
    ...这个还是搞activex吧。chrome用npplugin吧。
    cevincheung
        3
    cevincheung  
       Oct 21, 2014   ❤️ 1
    @Automan 这个是检测服务器上已连接的打印机吧 - -#
    Automan
        4
    Automan  
       Oct 21, 2014
    @cevincheung 客户端的话,跟PHP能有什么关系?
    samlan
        5
    samlan  
    OP
       Oct 21, 2014
    @Automan 客户端能不能用js来控制然后返回一个状态给后台那边?
    Automan
        6
    Automan  
       Oct 21, 2014
    @samlan 单用js是没办法获得打印机状态的,不过既然是ERP,内部网络的话,不如直接服务器端控制网络打印机了。。
    samlan
        7
    samlan  
    OP
       Oct 21, 2014
    @Automan 服务器端控制?C++那么做监听?
    pimin
        8
    pimin  
       Oct 21, 2014   ❤️ 1
    在服务端与打印机进行通讯就可以了,甚至不需要返回给每个客户端,客户端打印完随便他操作什么。
    服务端,服务端隔一段时间查询一次打印日志,比如30秒,把数据处理之后存到服务器比较方便吧。
    Automan
        9
    Automan  
       Oct 21, 2014
    @samlan php自己就有函数支持网络打印协议。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5546 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:34 · PVG 16:34 · LAX 01:34 · JFK 04:34
    ♥ Do have faith in what you're doing.