JQuery/Javascript or other way Silent Print once only

吃可爱长大的小学妹 提交于 2019-12-19 07:21:30

问题


Anyone knows how to print a file without showing print preview in cross browsers, API or libraries like jQuery or javascript or else.

  • Print a content without print preview (just silent print)
  • Print once, when softcopy is printed then the softcopy is expired because I want to avoid reprint the softcopy more than one by the user for security reason, especially if that is receipt is for reimburstment.

that is simple or not?

Reason why we won't show the print preview because there is possibility that user could

  • screenshot the file then photoshop the file values
  • change the contents
  • can duplicate copy

In that way it is difficult to monitor who printed the sensitive file in online.


回答1:


Printing from a web page is always with user interaction. However, you can prevent the document from being displayed. Shown here is the HTML5 control from my company's XtremeDocumentStudio .NET product. http://www.gnostice.com/nl_article.asp?id=291&t=Print_without_preview_using_XtremeDocumentStudio_NETs_HTML5_document_viewer_control



来源:https://stackoverflow.com/questions/30542022/jquery-javascript-or-other-way-silent-print-once-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!