empty line in cell
Posted: Fri Mar 23, 2012 2:44 am
Hello,everyone! When i load cell content from xml and insert it to all cells in table, there will be an additional line in all cells. Before i use AddNL to insert the xmlstr, i have call Cell.Clear.However, an additional line still exist in all cells. Anybody can give me a hand?
I insert text in this way:
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;