trichview.com

trichview.support




Re: Reading RichView document line by line


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/01/2004 17:58:07


The best way - copying via stream (SaveRVFToStream, LoadRVFFromStream).

You can also use AppendFrom method - it copies items one by one (but cannot

copy tables and controls).


In the simplest case (only text items (non-Unicode), no checkpoints, tags,

pagebreaks...):



for i := 0 to rvsource.ItemCount-1 do

begin

  if rvsource.IsParaStart(i) then

    ParaNo := rvsource.GetItemPara(i)

  else

    ParaNo := -1;

  rvdest.AddNL(rvsource.GetItemText(i), rvsource.GetItemStyle(i), ParaNo);

end;

rvdest.Format;



> I want to insert lines from RV edit into the another one. Source was

created

> by AddNL() functions, just styled text. I cannot find simple interfave

> reading RVEdit line by line. What is the right way to do it? Also - how to

> insert the whole RV edit to another one?

>

>





Powered by ABC Amber Outlook Express Converter