Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert RTF to plain text

Status
Not open for further replies.

Josiefuz

Programmer
Oct 26, 2002
7
US
I'm trying to read in RTF formatted text from an XML file, convert it to plain text and then output it to MS Word table via VB.

I can read it in and push it to word, but I'm not sure how to best remove all the RTF formatting. Any help would be appreciated.

I'm new to VB, so feel free to point out the obvious :)

-Fuz
 
Hmm. Seems like you could simply load your rich text into a RichTextBox control, and pull out the plain text using the Text property. The control can be hidden for that matter.

This is a quick and dirty hack, but it might be the way to go. Anybody have a light-weight alternative?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top