Reputation: 11662
This has been asked before. I know.
I can print in WPF Desktop apps. I can print in WinForms apps. I cannot print the contents of even a TextBox in Metro apps. I've tried all the example code, I've taken the advice of everyone I've asked for help, I've implemented their advice. To be honest, printing in Metro apps is absolute BS.
How do you print in Metro apps?
No MSDN documentation please. I am looking for resources to real-world examples where you DON'T add your own formatting or paragraphs or images. I'm looking for resources where you simply print what the user has created (whether that be 1 character, 4 characters or a full document with hundreds of paragraphs, images, etc).
How do we print an RTB in Metro apps? What is the easiest way?
Upvotes: 1
Views: 2809
Reputation: 15296
According MSDN discussion How to print RichEditBox content (RTF file), it's too much complex to print RichEditBox
because if you want to print it you have to manually parse the RTF format & it's literally too much tough task. That's why even OneNote doesn't provide printing & Metro IE also provide poorest printing.
If you want to print text box content, I have created a helper class which simplifies printing text box content. You can add helper class via NuGet. If you want to enhance my existing helper class, fork on GitHub
Upvotes: 1