使用谷歌浏览器自动打印javascript [英] javascript automate printing with google chrome

查看:831
本文介绍了使用谷歌浏览器自动打印javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要让Google Chrome自动打印一页。
我有一个当用户点击我的应用程序时打开的页面打印按钮
页面打开,铬预览窗口打开
我想要做的是以某种方式 - 选择正确的打印机 - 用户可以在设置中指定我应用程序中其他位置的内容,然后将该页面打印到该打印机,然后关闭窗口。这应该发生得非常快,以至于当用户按下打印时打印机开始打印。
我需要一个解决方案,通过构建在网页中的客户端应用程序中的java-script来执行此操作。
这可以做什么解决方案。
感谢所有人

need to make Google Chrome print a page automatically. I have a page that is opened when the user clicks my apps print button The page opens, the chrome preview window opens What i want to do is somehow - select the right printer - the user can specify what that is elsewhere in my app under settings, then print the page to that printer and then close the windows. This should happen so quick that when the user presses print the printer starts printing. I need a solution to do this from java-script within a client app built in a webpage. What are the solutions can this be done. Thanks all

推荐答案

没有办法只用JavaScript做到这一点。

There's no way to do this with only JavaScript.

这篇关于使用谷歌浏览器自动打印javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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