I insert text in this way:
Code: Select all
if xmlstr <> '' then
begin
table.Cells[r,c].Clear;
table.EditCell(r,c);
table.Cells[r,c].AddNL(xmlstr,0,-1);
end;
Code: Select all
if xmlstr <> '' then
begin
table.Cells[r,c].Clear;
table.EditCell(r,c);
table.Cells[r,c].AddNL(xmlstr,0,-1);
end;
Code: Select all
if xmlstr <> '' then
begin
table.Cells[r,c].GetRVData.Clear;
table.Cells[r,c].GetRVData.AddNL(xmlstr,0,0);
end;
// and when all is finished, call RichViewEdit.Format
Code: Select all
if xmlstr <> '' then
begin
table.Cells[r,c].Edit;
TCustomRVFormattedData(table.Cells[r,c].GetRVData).SelectAll;
RichViewEdit1.ApplyTextStyle(0);
RichViewEdit1.ApplyParaStyle(0);
RichViewEdit1.InsertText(xmlstr);
end;