Page 1 of 1

about LoadRVFFromstream

Posted: Tue Jul 10, 2007 5:57 am
by dutboy
sir:

I use LoadRVFFromStream method to insert content from anthoer RichViewedit. The code is here:

Code: Select all

  RichViewEdit1.Clear;
    bs:=TMemoryStream.Create;
    richviewedit2.SaveRVFToStream(bs,false);
    bs.Position:=0;
    RichViewEdit1.LoadRVFFromStream(bs);     
    RichViewEdit1.Format;
  bs.Free;
These code work well when richviewedit2's content doesn't contain Hyperlink.
If in richviededit2's content, I insert one hyperlink(using Richviewaction), one error then occur. Error code like this "...... is not valid integer value".

How can I resovle this question ?

Thank you.

Posted: Tue Jul 10, 2007 7:00 am
by Sergey Tkachenko
It happens because RichViewEdit2 contains items having strings in tags (the most probably they are hyperlink targets).
Include rvoTagsArePChars in RichViewEdit1.Options