trichview.com

trichview.support




Re: copy from one RVE to another RVE ?


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/20/2003 20:14:13


Actually, that was not a real bug in TRichView, but a bug in example.


FormatTail can be called only if after the previous call of

Format/FormatTail  there were only additions of new items to the end of

document.

But this code calls LoadRVFFromStream that clears existing document, thus

making impossible to call FormatTail.


If you need to use FormatTail after clearing, you need to call Format

before:


Stream := TMemoryStream.Create;

rvsource.SaveRVFToStream(Stream, False);

Stream.Position := 0;

rvdest.Clear;

rvdest.Format;

rvdest.LoadRVFFromStream(Stream);

Stream.Free;

rvdest.FormatTail;


Nevertheless, in the next update the original code will work correctly.





Powered by ABC Amber Outlook Express Converter