如何在不触发操作系统的“打印”的情况下打印WinRT Chrome应用程序?对话? [英] How does the WinRT Chrome app print without triggering the OS's "Print" dialog?

查看:123
本文介绍了如何在不触发操作系统的“打印”的情况下打印WinRT Chrome应用程序?对话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WinRT Chrome应用程序如何在不触发操作系统的打印对话框的情况下打印?



从我在别处看到的情况来看,每个WinRT应用程序都必须通过Windows打印对话框打印。但是,当您从Chrome Metro应用打印页面时,您会看到Chrome打印对话框,并且不会触发Windows打印对话框。 解决方案

我认为你不能。享有作为WinRT浏览器特权的一个浏览器应用程序也享有未授予其他WinRT应用程序的特权。例如,您可以打赌,Chrome既不是XAML应用,也不是HTML / JS应用。然而,所有的WinRT应用程序(除了一个浏览器应用程序)必须是其中之一。



跳过打印对话框可能只是简单地调用底层的Win32打印API--浏览器可以执行的操作,但没有其他WinRT应用程序。


How does the WinRT Chrome app print without triggering the OS's "Print" dialog?

From what I've seen elsewhere, every WinRT app must go through the Windows Print dialog to print. But when you print a page from the Chrome Metro app, you get the Chrome Print dialog, and the Windows Print dialog is not triggered.

解决方案

I don't think you can. The one browser app that enjoys the privilege of being your WinRT browser also enjoys special privileges not granted to other WinRT apps. For example, you can bet that Chrome is neither a XAML app nor an HTML/JS app. Yet all WinRT apps (except the one browser app) must be one of these two.

Skipping the print dialog is probably a matter a simply calling the underlying Win32 print APIs -- something browsers are allowed to do but no other WinRT app is.

这篇关于如何在不触发操作系统的“打印”的情况下打印WinRT Chrome应用程序?对话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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