Page 1 of 1

"SaveRVFToStream" method problem

Posted: Thu Oct 13, 2005 9:22 am
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.

Re: "SaveRVFToStream" method problem

Posted: Fri Oct 14, 2005 3:23 pm
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

Posted: Sat Oct 15, 2005 8:02 am
by Sergey Tkachenko
1) Stream.Position := 0 before rv.LoadRVFFromStream
2) rv.Format after rv.LoadRVFFromStream

Thanks!!

Posted: Mon Oct 17, 2005 1:19 am
by Kelvin
I think i have missed out the step of setting the position, now it's working, thank you very much!!