Reputation: 85
I am working on a UWP project and I am trying to print an image from my app. I have tried using the printing sample from microsoft but it's utterly confusing and it's stuck on an error I don't have the time or the patience to solve. Is there a way to launch printer programmatically as if I right clicked the item and chose print?
Upvotes: 0
Views: 256
Reputation: 6142
Diederik Krols did a very detailed blog post about printing, it's for WinRT but should mostly work for UWP too ( except for margins and layout because that has changed in Win10 UWP )
So take a look at this sample http://blogs.u2u.be/diederik/post/2013/01/20/Printing-from-MVVM-XAML-Windows-8-Store-apps.aspx
It's still a lot of work though...
Upvotes: 1
Reputation: 263
You shoud use RawPrinterHelper
class Please see the example in the following link
https://support.microsoft.com/en-us/kb/322091
Upvotes: 0