How can I select and copy the hole table in my document?
I use 1 document as template. And the document is filled by the source code with data from a dataset.
For each record I want copy a table which is defined already in the template document.
How can I select the total table and copy it to a position in another table.
{somethin like:
for lCnt:=0 to aDataset.RecordCount do
begin
SelectTable();
CopyTable();
FillTableByRecord();
end;}
Copy hole table
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
Stream := TMemoryStream.Create;
sourcetable.SaveToStream(Stream);
desttable := TRVTableItemInfo.CreateEx(1,1, rv.RVData);
Stream.Position := 0;
desttable.LoadFromStream(Stream);
Stream.Free;
<insert desttable where you want)