trichview.com

trichview.support




Re: Annotations etc


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/09/2002 14:40:43


Hi,


There are several possible approaches to store annotations (and other

additional RTF code), but all of them:

- require from you to write RTF code for annotations yourself;

- annotations will be ignored when importing this RTF back.


1) You can define some text style as containing RTF codes: include

rvteoRTFCode in Options for this text style.

Text of this style will be saved in RTF as is, without replacing braces and

slashes with codes.

This approach has one additional problem: this text will be saved in HTML as

well as in RTF.


2) You can insert some control in RichView (for example, TImage with some

icon) and in OnSaveComponentToFile write a code which will be inserted in

RTF (or in HTML)


3) Just for completeness: undocumented event OnSaveRTFExtra allows to save

additional RTF code in descriptions of  text, paragraph styles, cells or

table rows.



>

> I am making an application for creating Web pages from RTF. I would like

to

> be able to insert RTF annotations

> (like {\*' \annotation <atnref> <para>+ '} etc) I need to retain these

annotations

> in the RTF (which is saved in a database) and convert them to hyprlinks in

> HTML. At present TRichView seems to lose annotations which I have put in

> by hand when SaveAsRTFxxx is run. I have not a great deal of experience

with

> TRichView yet so I may be missing something obvious!

>

> Many thanks (and congratulations on the product!)

>

> Chris





Powered by ABC Amber Outlook Express Converter