在MVC.NET中的客户端浏览器中自动打印报告 [英] Auto printing report in client browser in MVC.NET

查看:221
本文介绍了在MVC.NET中的客户端浏览器中自动打印报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们有一个Web项目(MVC.NET)。它的要求是当我生成报告时,它会自动打印生成的报告(pdf文件),而无需单击任何按钮进行打印。



我可以问这是否可以使用ActiveX以及如何使用。



如果你有,我将不胜感激任何其他可能解决这个问题的想法。





谢谢。



我尝试了什么:



我试图在谷歌搜索可能的解决方案,但遗憾的是我得不到答案。

Hi,

We have a Web project (MVC.NET). Its requirement is when I generate the report, it automatically print the generated report (pdf file) without clicking any button to print.

May I ask if this is possible using ActiveX and how.

I would appreciate if you have any other ideas that might solve this problem.


Thank you.

What I have tried:

I tried to search in Google for possible solution but unfortunately I get no answer.

推荐答案

这是一种安全功能,可以防止恶意软件无限期地打印垃圾。

您了解浏览器不允许这样做。

第二个问题,默认打印机可能不是客户想要使用的打印机。



问问自己,你想做什么可以用来滥用你的客户,如果答案是肯定的,你知道为什么不允许这样做。
It is a security feature to prevent malware from printing junk indefinitely.
You understand that browsers can't allow this.
Second problem, the default printer may not be the one the client want to use.

Ask your self if what you want to do can be used to abuse your client, if the answer is YES, you know why it is not allowed.


这篇关于在MVC.NET中的客户端浏览器中自动打印报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆