Set WinForms RichTextBox as PrintDocument Source

I want to print the contents of a RichTextBox , so I'm trying to make a PrintDocument from a RichTextBox. But I did not find a way to convert a simple RichTextBox to PrintDocument. Any ideas?

+1
source share
1 answer

Here's a pretty extensive article about it on MSDN, Getting WYSIWYG print results from .NET RichTextBox : if this is TL; DR, that is, a compressed version like article kb, How to print the contents of a RichTextBox control using Visual C # .NET or Visual C # 2005

+2

Source: https://habr.com/ru/post/1757955/


All Articles