C#: in the .NET libraries, is there a standard class that can view and print an RTF string?
C#: in the .NET libraries, is there a standard class that can view and print a开发者_JS百科n RTF string?
I essentially need a "viewer" which will simply display a simple or rich-text string and have a print button which would allow printing of the displayed string.
You can use RichTextBox and set the Rtf member.
Regarding printing you can see this related question where there are some useful links:
- Getting WYSIWYG Print Results from a .NET RichTextBox
- How to print the content of a RichTextBox control by using Visual C# .NET or Visual C# 2005
精彩评论