I faced an odd problem with TRVTableItemInfo. I have a global variable named ATable. I add content to this private variable some text and add it to RichView and finally format the document.
After this when I want to get an item in a cell of a table, the cell is always empty. Here is the code that I use for getting count of the items in a table cell:
Code: Select all
var
StartRow, StartCol, RowOffs, ColOffs: Integer;
begin
ATable.GetSelectionBounds(StartRow, StartCol, RowOffs, ColOffs);
Caption := IntToStr(ATable.Cells[StartRow, StartCol].ItemCount);
I must mention that StartRow and StartCol are referencing correct table cell.
Why this happen? Are u have an idea?
Thank you