Page 1 of 1

Several TextStyles in same line into Table.Cells

Posted: Mon Apr 07, 2008 6:18 pm
by jhonalone
Hi

I nead your help!

How can I append several text-styles at the same line into table.cells (by code)? Is it possible?

with table.cells(r,c)
do begin
AddNL(), AddTextNL() (Creates new lines for each TextStyle)
Add(), AddText() (aren't usefull)
end;

Posted: Tue Apr 08, 2008 2:31 pm
by Sergey Tkachenko
You can use AddNL() with ParaNo parameter = -1. This means adding in the same paragraph as the previous line. Such calls of AddNL() (with ParaNo=-1) are the same as calls of Add().
AddTextNL() can be used too (with FirstParaNo parameter = -1).
AddText() is a deprecated method.

PS: Each cell initially has one empty text item. Before adding new text, you can delete it by calling Cell.Clear().

Posted: Tue Apr 08, 2008 4:55 pm
by jhonalone
Oh yes, Sergey.

Excuse me, I just forgot the ParaNo=-1 meaning.

That's all right!

Thank you very much.