简体   繁体   English

如何在 PHP 和 Javascript web 应用程序的打印对话框中禁用“另存为”选项。 如果打印机已连接且未下载,则应出现该对话框

[英]How to disable “Save As” option in print dialog in PHP and Javascript web application. The dialog should appear if printer is connected no downloading

I have this issue at hand.我手头有这个问题。 Am doing a web system with PHP CodeIgniter for a publisher organization.我正在为发布者组织使用 PHP CodeIgniter 做 web 系统。 Everything is fully implemented apart from Printing.除了打印之外,一切都已完全实现。 Now the system is supposed to allow only printing of the materials.现在系统应该只允许打印材料。 No downloading, That means the print dialog should not contain the "save as" option.不下载,这意味着打印对话框不应包含“另存为”选项。 Neither should it pop up if the printer is not connected.如果没有连接打印机,它也不应该弹出。 Any idea on how to achieve this is very much welcome.任何关于如何实现这一目标的想法都非常受欢迎。

I have tried using onbeforeprinting but I have not achieved the functionality.我曾尝试使用onbeforeprinting ,但我没有实现该功能。 JsPrintManager works with few browsers hence implementation has limitations JsPrintManager适用于少数浏览器,因此实现有局限性

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

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