Page 1 of 1

open two texts

Posted: Sat Oct 11, 2014 2:26 pm
by Ceprotec
Hello sergey,
I wonder, how do I open a text saved in database inside another without replacing the page?

thanks

Posted: Sun Oct 12, 2014 11:12 am
by Sergey Tkachenko
Sorry, I do not understand. Can you give an example?

Posted: Tue Oct 14, 2014 1:34 pm
by Ceprotec
example:
I have a document open in Richview, and at the end of the text I need to put a text that is saved in RTF without having to replace the above

Posted: Wed Oct 15, 2014 3:43 pm
by Sergey Tkachenko
LoadRTF does not clear a document, so:

Code: Select all

rv.Clear;
rv.LoadRTF(FileName1);
rv.LoadRTF(FileName2);
rv.Format;
For RVF:

Code: Select all

rv.LoadRVF(FileName1);
Stream := TFileStream.Create(FileName2, fmOpenRead);
rv.InsertRVFFromStream(Stream, rv.ItemCount);
Stream.Free;
rv.Format;

Posted: Thu Oct 16, 2014 4:28 pm
by Ceprotec
ok, thanks Sergey