Fran_gg7
Fran_gg7

Reputation: 727

Windows 8.1 print directly to printer

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.

enter image description here

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

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

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

Related Questions