richardSlade
asked on
RichTextBox - Save as text with formatting
Hi,
I have a richtextbox on a C# 2.0 Windows Form. The RichTextBox displays T-SQL Syntax that is highlighted using RTF. I want to save the contents of the RTB to a text file. It should only save the text, not the RTF characters but I want to preserve the formatting line breaks and indentation.
If I save the Text, I don't get hte formatting, if I save the RTF I get all the characters.
Thanks in advance.
Rich
I have a richtextbox on a C# 2.0 Windows Form. The RichTextBox displays T-SQL Syntax that is highlighted using RTF. I want to save the contents of the RTB to a text file. It should only save the text, not the RTF characters but I want to preserve the formatting line breaks and indentation.
If I save the Text, I don't get hte formatting, if I save the RTF I get all the characters.
Thanks in advance.
Rich
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER