WinRT Metro 应用程序直接打印(无打印对话框)
我需要一种直接将发票打印到打印机的方法,而无需打开打印对话框来选择打印机。
它基本上用于餐厅销售应用程序,我不希望用户首先预览单据等,然后选择打印机等。
我不介意必须使用某种 UI 上的打印按钮,但该对话框破坏了我的用户体验。
我还查看了 Windows 8 开发者预览版 Metro 风格应用程序示例,但其中仅解释和显示了正常打印。
任何帮助将不胜感激。
I require a way to print direct invoices to the printer without opening a print dialog to choose the printer.
Its basically for a restaurant sales application and I dont want the user to first preview the slip etc and then choose a printer ect.
I dont mind having to use a printing button on the UI of somesort, but the dialog is breaking my user experience.
I've also looked at Windows 8 Developer Preview Metro style app samples but only normal printing is explained and shown there.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在当前版本的 WinRT 中,无法跳过打印机选择屏幕,尽管打印机配置屏幕可以充分扩展以包含特定于应用程序的设置。 打印示例说明了如何进行这些自定义。
如果跳过打印机选择的能力对于您的应用程序至关重要,那么您将需要考虑此版本中的经典桌面应用程序。
In the current release of WinRT there is no way to skip the printer selection screen, though the printer configuration screen can be sufficiently extended to include application-specific settings. The Print Sample illustrates how to make these customizations.
If the ability to skip printer selection is critical to your application, you will need to consider a classic desktop application in this release.
请注意,Chrome WinRT 应用程序能够在不触发 WinRT 打印对话框的情况下进行打印。可悲的是,我还不确定它是如何做到这一点的。
As a heads-up, the Chrome WinRT app is able to print without triggering the WinRT print dialog. Sadly, I'm not yet sure how it does that.