trichview.com

trichview.support




Re: How to display RTF in TRichViewEdit without changing the original format


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/20/2003 20:46:58


Right click TRichView component in Delphi, choose "Settings" in the context

menu, set the option "Allow adding dynamically". The component editor shows

which properties were changed.

If you create TRichView at run-time, change values of properties as was

shown above.

Specifically for RTF import,

rv.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;

rv.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;



>

> Hi,

> I just downloaded the TRichView component and installed it in my Delphi 5.

> When I created a simple application and tried to display a RTF file

(created

> in MicroSoft Word) in the TRichViewEdit, I found the Font and Colour

changed

> according to the setting of RVStyle.

>

> My question is: Is it possible to display the rtf file independent of

setting

> in RVStyle so that it looks just like it in Microsoft Word.

>

> Thanks

>

> norma





Powered by ABC Amber Outlook Express Converter