在本地计算机上打印远程文档
我的客户当前正在使用显示订单仪表板的 PHP 应用程序,该仪表板通过浏览器中的轮询实时更新新内容。
在轮询事件中,我想弹出一个打印对话框来打印在服务器上生成并存储的特定订单的文档。
因此,基本上每个订单都以 pdf 格式的收据形式存储在我的网络服务器上,我所需要做的就是当仪表板更新为新订单时,我必须在连接到机器的本地打印机上启动特定收据的打印。
这可能吗?
My client is currently using a PHP application that displays an order dashboard, this dashboard is updated in real-time with new content using polling in the browser.
on the poll event i would like to pop up a print dialog to print a document for a particular order that was generated and stored on server.
So basically every order is stored as a receipt in pdf format on my webserver, all i need to do is when the dashboard is updated with new order i have to initiate a print on the local printer attached to the machine for a particular receipt.
is this possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉 PHP,但我想说你可以从生成它的服务器启动下载并让用户保存/打开并打印。 stackoverflow上应该有几个关于php下载文件的问题。这显然要求生成的文件可以通过网络访问。
I'm not familiar with PHP but I would say you could just initiate a download from the server that generated it and have the user save/open and print. There should be several questions here on stackoverflow about downloading files in php. This obviously requires that the files generated be accessible via the web.