RTF to clear text converter in C#

Converting RTF data to clear text using C#

Page 1 of 1

2 Replies - 3670 Views - Last Post: 01 April 2010 - 11:04 AM Rate Topic: -----

#1 ssamiev  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 24
  • Joined: 16-March 10

RTF to clear text converter in C#

Posted 30 March 2010 - 01:29 AM

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
Is This A Good Question/Topic? 0
  • +

Replies To: RTF to clear text converter in C#

#2 Charles:)  Icon User is offline

  • D.I.C Head

Reputation: 84
  • View blog
  • Posts: 195
  • Joined: 26-November 09

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.
Was This Post Helpful? 0
  • +
  • -

#3 ssamiev  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 24
  • Joined: 16-March 10

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1