Table adding rows at runtime in RichView
Posted: Wed May 21, 2008 8:26 am
Hello,
I want solve following. In RichViewEdit the user has only insert a table with one row and placeholders in cells.
Now at runtime I want to add so many rows as recordcount in a db table.
Is there a example to do this?
I have tried to do following :
table := TRVTableItemInfo(RVData.GetItem(i));
For u := 0 to (tTabelle.RecordCount-1) do begin
table.Rows.Add(table.Rows[0].Count);
...
end;
But if I print it I get the error : Index out of bounds (but the table rows are printing). What do I wrong?
Best wishes
Bernhard
I want solve following. In RichViewEdit the user has only insert a table with one row and placeholders in cells.
Now at runtime I want to add so many rows as recordcount in a db table.
Is there a example to do this?
I have tried to do following :
table := TRVTableItemInfo(RVData.GetItem(i));
For u := 0 to (tTabelle.RecordCount-1) do begin
table.Rows.Add(table.Rows[0].Count);
...
end;
But if I print it I get the error : Index out of bounds (but the table rows are printing). What do I wrong?
Best wishes
Bernhard