Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinRT Metro App Direct Printing (Without Printing Dialog)

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.

like image 886
Dom Avatar asked Feb 13 '12 06:02

Dom


2 Answers

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.

like image 178
Jared Bienz - MSFT Avatar answered Oct 27 '22 22:10

Jared Bienz - MSFT


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.

like image 1
keylimesoda Avatar answered Oct 27 '22 23:10

keylimesoda