Page 1 of 1

cell problem with multiline text carriage return

Posted: Fri May 17, 2019 2:05 pm
by vector
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!

Re: cell problem with multiline text carriage return

Posted: Fri May 17, 2019 2:27 pm
by vector
ups,I find the solution
I use the addtextnl instead of addnl , and it works!