WPF RichTextBox Print / Preview - ApplicationCommands.PrintPreview?

I really love WPF RichTextBox and all the out-of-the-box functionality it uses ... but printing is what I ran into. I can print (from code) using PrintDialog and pass to RichTextBox as Visual (or using "Document").

But my question is, is there an easy way to use application commands:

  • ApplicationCommands.Print
  • ApplicationCommands.PrintPreview

With WPF RichTextBox? Also, how can I let the user change the page layout etc.

+1


source to share


1 answer


Take a look at http://blogs.msdn.com/llobo/archive/2007/01/24/printing-richtextbox-content-find-the-idle-printer.aspx



0


source







All Articles