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?
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
Source: https://habr.com/ru/post/1757955/More articles:Architecture / patterns for pushing live data in a client server application - design-patternshow to change the ExpandableListview icon on the left to others (android ExpandableListView) - androidCreate view based on hierarchy / used by CTE - sqlHow do you convert XSLT 2.0 date duration to string? - dateC #: do .NET libraries have a standard class that can view and print an RTF string? - c #Getting Editing Commands In Derived InlineUIContainer - wpfRe-matching takes a very long time to complete - performanceHow to use Sweave (R) code inside fancyhdr? - rUsing LIKE in CASE operations - sqlDetect if Exchange MAPI is installed - exchange-serverAll Articles