简体   繁体   English

如何使用PHP或JavaScript在两个不同的打印机上同时打印?

[英]How to print in two different printers at the same time using PHP or JavaScript?

I am developing a simple restaurant check-out system in PHP where, once paid, both tickets must be printed, one for Kitchen and another one to client. 我正在用PHP开发一个简单的餐厅结帐系统,一旦付款,必须打印两张票,一张用于Kitchen,另一张用于客户。 The question is, i'm facing problem to print each ticket in 2 different printers. 问题是,我面临着在2台不同的打印机中打印每张票证的问题。 What is the best way to to that? 最好的方法是什么? Because I'm using JavaScript to print it, but this only work for one printer and I need to print at the same time in both printers . 因为我使用JavaScript进行打印,但这仅适用于一台打印机,因此我需要在两台打印机中同时进行打印

Obs: both are installed via USB. Obs:两者都通过USB安装。

Thanks 谢谢

Your web server can talk to the print server or printers and print it. 您的Web服务器可以与打印服务器或打印机对话并进行打印。 You can't control how a web browser prints unless you have some kind of plugin. 除非您具有某种插件,否则您无法控制Web浏览器的打印方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM