Home All Groups Group Topic Archive Search About

How should I convert Rtf to plain text?

Author
26 Jun 2006 7:03 PM
PIEBALD
So far, as a work-around at least, I'm instantiating a RichTextBox, setting
its Rtf property to the rich text I have, then using the Text property to get
the plain text.

This works, but I expect there's a more efficient way.

Author
27 Jun 2006 5:24 AM
Lloyd Dupont
how about that:
http://www.codeproject.com/cs/library/nrtftree.asp

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
Show quote
"PIEBALD" <PIEB***@discussions.microsoft.com> wrote in message
news:F01AF64B-84DE-4D78-B20B-EAE844B523F4@microsoft.com...
> So far, as a work-around at least, I'm instantiating a RichTextBox,
> setting
> its Rtf property to the rich text I have, then using the Text property to
> get
> the plain text.
>
> This works, but I expect there's a more efficient way.
Author
27 Jun 2006 9:33 AM
Larry Lard
PIEBALD wrote:
> So far, as a work-around at least, I'm instantiating a RichTextBox, setting
> its Rtf property to the rich text I have, then using the Text property to get
> the plain text.
>
> This works, but I expect there's a more efficient way.

Is this process a bottleneck, then?

You know what they say about premature optimization...

--
Larry Lard
Replies to group please
Author
27 Jun 2006 2:35 PM
PIEBALD
No on both counts.

AddThis Social Bookmark Button