Converting RTF text to normal text

BelaB

New Member
Hello!
I saved the rtf text of my rtf-ocx in the database.
To export it to MS Word using COM, I need to convert it to normal "readable" text.
Here an example of the rtf text I want to convert:
file:///C:/Daten/Download/mustang.wmv

{\rtf1\ansi\ansicpg1252\deff0\deftab1134{\fonttbl{\f0\fswiss\fprq2\fcharset0

Arial;}}

\viewkind4\uc1\pard\qj\lang1031\b\f0\fs18

Unterfangung des Mauerwerks durch Ein\-zie\-hen von

\b0\i Stahltr\'e4gern nach Angabe des Sta\-ti\-kers

her\-stellen, \ul\i0 incl. Auflager sowie Aus\

mauern und Ver\-pressen der \ulnone Anschlussfugen

zwischen Tr\'e4\-ger und Mauer\-werk.

\par Die Abst\'fctzungen als Provisorium sowie

das Ent\-sor\-gen des Bauschutts sind einzurechnen.

\par \pard\qj\tx963\tx1077\tx2268 Wanddicke\tab

:\tab .....

\par Stahlprofil\tab :\tab .....

\par }


Is this possible in Progress?
I'm using 9.1b


Thanks
 

M.Fondacci

New Member
RTF text to plain text. xEdit.ocx

As we had the same problem, we have created xEdit.ocx. This OCX uses RTF text format but allows to get plain text.
You could put your text in the xEdit.ocx and get the standard text with then PlainText property

You can test it at www.4GL.fr
Best regards,

Marcel.

BelaB said:
Hello!
I saved the rtf text of my rtf-ocx in the database.
To export it to MS Word using COM, I need to convert it to normal "readable" text.
Here an example of the rtf text I want to convert:


{\rtf1\ansi\ansicpg1252\deff0\deftab1134{\fonttbl{\f0\fswiss\fprq2\fcharset0

Arial;}}

\viewkind4\uc1\pard\qj\lang1031\b\f0\fs18

Unterfangung des Mauerwerks durch Ein\-zie\-hen von

\b0\i Stahltr\'e4gern nach Angabe des Sta\-ti\-kers

her\-stellen, \ul\i0 incl. Auflager sowie Aus\

mauern und Ver\-pressen der \ulnone Anschlussfugen

zwischen Tr\'e4\-ger und Mauer\-werk.

\par Die Abst\'fctzungen als Provisorium sowie

das Ent\-sor\-gen des Bauschutts sind einzurechnen.

\par \pard\qj\tx963\tx1077\tx2268 Wanddicke\tab

:\tab .....

\par Stahlprofil\tab :\tab .....

\par }


Is this possible in Progress?
I'm using 9.1b


Thanks
 
Top