code to read the table content like this:
Code: Select all
for j := 0 to RVData.ItemCount-1 do
begin
if (j>0) and RVData.IsFromNewLine(j) then
xmlstr := xmlstr + #13#10;
if RVData.GetItemStyle(j)=rvstab then
xmlstr := xmlstr + #9
else if RVData.GetItemStyle(j)>=0 then
xmlstr := xmlstr + RVData.GetItemText(j);
end;
Code: Select all
if teststr <> '' then
begin
table.Cells[r,c].GetRVData.Clear;
table.Cells[r,c].GetRVData.AddNL(teststr,NewStyleNo,0);
end;
RichviewEdit.Format;