Hello!
I have a rtf document opened in richchedit, with two tables.
How can i insert the second table 3. row into first table 9. row?
Please help me. The structure of the tables is unknow, because it made by user.
Thank you!
merge table rows
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: merge table rows
Code: Select all
var
Stream: TMemoryStream;
Stream := TMemoryStream.Create;
table2.SaveRowsToStream(Stream, 9, 1);
Stream.Position := 0;
table2.LoadFromStreamEx(3, 0, False);
Stream.Free;
RichView1.Format;
If rows are incompatible, LoadFromStreamEx raises an exception.