cell problem with multiline text carriage return

General TRichView support forum. Please post your questions here
Post Reply
vector
Posts: 3
Joined: Wed May 08, 2019 11:44 am

cell problem with multiline text carriage return

Post 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!
Last edited by vector on Fri May 17, 2019 2:28 pm, edited 1 time in total.
vector
Posts: 3
Joined: Wed May 08, 2019 11:44 am

Re: cell problem with multiline text carriage return

Post by vector »

ups,I find the solution
I use the addtextnl instead of addnl , and it works!
Post Reply