about LoadRVFFromstream

General TRichView support forum. Please post your questions here
Post Reply
dutboy
Posts: 5
Joined: Mon Nov 14, 2005 12:19 pm

about LoadRVFFromstream

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
Post Reply