Reputation: 727
I am developing a Windows 8.1 native app and the functionallity I am implementing requires a direct print to the printer, avoiding the default print flyout of metro apps.
However, I don't see the way to achieve it. I only want to tap a button and print a document directly, it must be a simple and quick operation for the user.
Upvotes: 1
Views: 599
Reputation: 21899
This is not supported from a general purpose Windows Store app. The Windows Runtime print API allows the app to provide the data to print, but the user is in control of the actual printing and which printer it goes to.
If your app is side-loaded rather than deployed through the store then it can use a Brokered Windows Runtime Component (BWRC) to call the desktop printing API to print without user input.
BWRC docs: https://msdn.microsoft.com/en-us/library/windows/apps/dn630195.aspx
Upvotes: 1