trichview.com

trichview.support




Re: Underlines and HTML Export


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/17/2002 18:27:11


Answering on the received example:


This problem occurs because the default method of RTF pasting is not

optimal.

It does not add new text and paragraph styles in RVStyle.TextStyles and

ParaStyles, but uses the most closes from existing styles.

You can see it when pasting RTF in the third richviewedit.    There are 6

default text styles in RVStyle1, and they will be used for pasted RTF.


How to set up editors for optimal RTF import? For editors created at design

time on the form: you can right click them, select "Settings" in the context

menu, then choose "Allow adding styles dynamically".

For richviews created at run time, you need to set some properties manually.

For RTF import, it's enough to write:


     rv.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;

      rv.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;





Powered by ABC Amber Outlook Express Converter