cell problem with multiline text carriage return
Posted: Fri May 17, 2019 2:05 pm
Hi, please help me.
This code is works:
string_variable:='aaa'+char(13)+char(10)+'bbb';
rtfTable.Cells[rtfeditform.rtftablazatsor-rtfeditform.fejlecnincs,oszlop].clear;
rtfTable.Cells[5,5].AddNL(string_variable ,1,1);
but i see in the generated doc one line in the cell, no line feed :
aaa??bbb
I want this in two rows:
aaa
bbb
I work in Delpi 5
ups,I find the solution
I use the addtextnl instead of addnl , and it works!
This code is works:
string_variable:='aaa'+char(13)+char(10)+'bbb';
rtfTable.Cells[rtfeditform.rtftablazatsor-rtfeditform.fejlecnincs,oszlop].clear;
rtfTable.Cells[5,5].AddNL(string_variable ,1,1);
but i see in the generated doc one line in the cell, no line feed :
aaa??bbb
I want this in two rows:
aaa
bbb
I work in Delpi 5
ups,I find the solution
I use the addtextnl instead of addnl , and it works!