trichview.com

trichview.support




Re: Saving/Loading Text and Format Separately


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/08/2004 21:53:14


Formatting is defined in 3 collections: TRVStyle.TextStyles (text

attributes), TRVStyle.ParaStyles (paragraph attributes), TRVStyle.ListStyles

(properties of bullets and numbering).

These collection can be saved with document, or can be saved separately.


If you do not want to store them with document, make sure that

rvfoSaveTextStyles, rvfoSaveParaStyles are excluded from RVFOptions

property. For any case you can also set

RVFTextStylesReadMode and RVFParaStylesReadMode to rvf_sIgnore.


How to store these collections separately?

The simplest way is to store the whole TRVStyle component to stream:

Stream.WriteComponent(TRVStyle).




>

> Hello,

>

> I'm testing RichView and I would like to know if it is possible to load

and

> save text and formatting separately. This is needed because I want to

allow

> different users to highlight different parts in a text. This way the text

> will always be the same and will be in a read-only db table. However the

> format needs to be stored in a per-user record. Is this possible with

TRichView?

> Thanks for any help given.

>

> Regards,

> Paul





Powered by ABC Amber Outlook Express Converter