Hi to all!
As I know Rich Text Format is considered one of the most popular data formats where you can save formatting in it and it's easy to convert text in C# using RichTextBox win control.
I am asking u all how to accomplish this in reverse order that's converting from rtf to clear text (with support of UTF)
Thnx in advance.
Samiev Suhrob
C# programmer
RTF to clear text converter in C#Converting RTF data to clear text using C#
Page 1 of 1
2 Replies - 3113 Views - Last Post: 01 April 2010 - 11:04 AM
Replies To: RTF to clear text converter in C#
#2
Re: RTF to clear text converter in C#
Posted 30 March 2010 - 04:14 AM
You can open your RTF in a rich text box and then use the RTB.Text property to get the text without formatting.
If you want to do it without using the RTB control you could write a class with parses RTF files and removes the formatting information. That shouldn't be too difficult.
If you want to do it without using the RTB control you could write a class with parses RTF files and removes the formatting information. That shouldn't be too difficult.
#3
Re: RTF to clear text converter in C#
Posted 01 April 2010 - 11:04 AM
Really I did it right that way. I had rtf data in Access Database
say rtftxt column and created a loop where I loaded rtf to RTB control and got text via Text property and wrote to a file.
say rtftxt column and created a loop where I loaded rtf to RTB control and got text via Text property and wrote to a file.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|