Hi,
I am using Delphi 7 with WPTools 4.22.
I have created a new table with 3 col and 3 rows and I have filled some cells with images and text.
Now I need to check a determinate cell (eg. row 2 col 2) and to know if this cell is empty or not.
So, I need to know how can do to select a text inside a Cell Table and how to show this selected text.
I have tried to use the function "SelectCells", but I don't know how it work.
Eg.
...
WPRichText.TableRowNumber := (pPosLin - 1);
WPRichText.TableColNumber := (pPosCol - 1);
WPRichText.SelectCells(1);
if (Trim(WPRichText.SelectionAsString) <> '') then
begin
WPRichText.ClearSelection;
WPRichText.HideSelection;
end
else
raise EAbort.Create('This Cell is already empty.');
...
Obviously it doesn't work. Can you help me please?
Regards,
Rafael Amorim