How to convert RTF to plain text?

raptor

New Member
Hello

I have a field which contains rtf-formatted text like this:

Code:
{\rtf1\ansi\ansicpg1252\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fswiss\fprq4 Arial;}{\f3\fswiss\fprq2 Arial;}}
{\colortbl\red0\green0\blue0;}
\deflang4108\pard\plain\f2\fs20\cf0 blablabla... \'e0 blablabla
\par }
Is there an easy way to convert rtf to plain text?

Thank you for your help.


Regards
raptor
 
i have 2 ideas how to do it:

1) use RichTextBox control (ActiveX), load rtf inside and use "save as text" and you have pure txt

2) replace all RTF signs until you get txt, not very good way but in simple rtf works ...
 
Back
Top