trichview.com

trichview.support




Re: Copy data from RichviewEdit to DBRichViewEdit


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/28/2003 18:15:23


Thank you for help :)


Addition: DBRichViewEdit has some specificity, so the full code will be:


if not dbrve.CanChange then

  exit;

Stream := TMemoryStream.Create;

rv.SaveRVFToStream(Stream, False);

Stream.Position := 0;

dbrve.LoadRVFFromStream(Stream);

Stream.Free;

dbrve.Change;

dbrve.Format;


Changes will not be saved in database until user clicks "Post changes" in

DBNavigator.

If you want to save changes immediately, call table.Post instead of

dbrve.Format;





> 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