V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
samlan
V2EX  ›  问与答

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

  •  
  •   samlan · 2014-10-21 13:49:21 +08:00 · 3284 次点击
    这是一个创建于 3475 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近做erp时 有这样一个问题:如何在打印完成后(指实际已输出标签),把订单转换成打印订单?
    9 条回复    2014-10-21 17:39:25 +08:00
    Automan
        1
    Automan  
       2014-10-21 14:12:03 +08:00
    cevincheung
        2
    cevincheung  
       2014-10-21 14:16:27 +08:00
    ...这个还是搞activex吧。chrome用npplugin吧。
    cevincheung
        3
    cevincheung  
       2014-10-21 14:16:52 +08:00   ❤️ 1
    @Automan 这个是检测服务器上已连接的打印机吧 - -#
    Automan
        4
    Automan  
       2014-10-21 14:19:21 +08:00
    @cevincheung 客户端的话,跟PHP能有什么关系?
    samlan
        5
    samlan  
    OP
       2014-10-21 14:24:23 +08:00
    @Automan 客户端能不能用js来控制然后返回一个状态给后台那边?
    Automan
        6
    Automan  
       2014-10-21 14:52:58 +08:00
    @samlan 单用js是没办法获得打印机状态的,不过既然是ERP,内部网络的话,不如直接服务器端控制网络打印机了。。
    samlan
        7
    samlan  
    OP
       2014-10-21 16:17:19 +08:00
    @Automan 服务器端控制?C++那么做监听?
    pimin
        8
    pimin  
       2014-10-21 16:38:37 +08:00   ❤️ 1
    在服务端与打印机进行通讯就可以了,甚至不需要返回给每个客户端,客户端打印完随便他操作什么。
    服务端,服务端隔一段时间查询一次打印日志,比如30秒,把数据处理之后存到服务器比较方便吧。
    Automan
        9
    Automan  
       2014-10-21 17:39:25 +08:00
    @samlan php自己就有函数支持网络打印协议。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2903 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.