views:

215

answers:

1

I want to print the contents of a RichTextBox, so I am trying make a PrintDocument out of the RichTextBox. But I dont find a way to convert a simple RichTextBox to a PrintDocument. Any ideas?

+2  A: 

There's quite an extensive article on this on MSDN, Getting WYSIWYG Print Results from a .NET RichTextBox: if that's TLDR then there's a condensed version as a kb article, How to print the content of a RichTextBox control by using Visual C# .NET or Visual C# 2005

Stuart Dunkeld
the second one looks more compact. will try. but there should've been an implicit way. if not RTB, what are people supposed to print in a DotNet app?
Bibhas