"SaveRVFToStream" method problem

General TRichView support forum. Please post your questions here
Post Reply
Kelvin

"SaveRVFToStream" method problem

Post by Kelvin »

Hi all,

I'm new in using this library component, so i wish somebody could guide me in the problem i'm facing, any guidance and help is very much appreciated, Thank you. Here is my problem:

I used "SaveRVFToStream" to save my "RichViewEdit" content into a stream then reload it from the stream, but the "SaveRVFToStream" method doesn't seem to be functionning in saving my changes. the reloaded content seems to be the prevoiusly saved content.
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Re: "SaveRVFToStream" method problem

Post by Michel »

Are you sure you are properly "rewinding" the stream? I.e., are you setting Stream.Position to 0 when/where appropriate? If so, I am out of ideas without seeing any code you are using. In general, when troubleshooting such problems, I find it very helpful to actually look at the stream's binary data. Save it to a file and open it in any viewer/editor capable of displaying binary data and see what's there.

Hope this helps,

Michel
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) Stream.Position := 0 before rv.LoadRVFFromStream
2) rv.Format after rv.LoadRVFFromStream
Kelvin

Thanks!!

Post by Kelvin »

I think i have missed out the step of setting the position, now it's working, thank you very much!!
Post Reply