trichview.com

trichview.support




Re: Copy data from RichviewEdit to DBRichViewEdit


Return to index


Author

Message

Jonas Bilinkevicius

Posted: 11/28/2003 14:06:58


look at my post "Copy Data" 2003.11.26. There is the answer to your

question.


-Sergey Post -

----------------------------------------

var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

rv.SaveRVFToStream(Stream, False);

Stream.Position := 0;

rvrh.RichView.LoadRVFFromStream(Stream);

Stream.Free;


rv and rvrh.RichView must be either

- linked to the same RVStyle component

or

- rv must have "Allow adding styles dynamically" set (right click rv in

Delphi, choose "Settings" in the context menu")

- rvrh.RichView.RVFTextStylesReadMode must be rvf_sInsertMerge, the same for

- rvrh.RichView.RVFParaStylesReadMode

- both rv and rvrh.RichView must have rvoTagsArePChars in Options (or both

must do not have it)

----------------------------------------

You need to replace rvrh.RichView to your DBRichViewEdit component.


"laura cordova" <lcordova@cgpj.jalisco.gob.mx> wrote in message

news:3fc65955@support.torry.net...

>

> Hi!

> I need to copy the data of a RichviewEdit to a DBRichViewEdit, but if

first

> it contains imagenes, these do not go and the following text to imagenes.

>  That I can do?

>

>   Thanks.





Powered by ABC Amber Outlook Express Converter