Thanks to your answeer. It helped a bit, but I still have some ptoblems to control the things.
In my header, I have a line with a logo, then I have 2 tables with 4 lines each. The variables I have to put will be one at the first table and the other at the second table.
I could move to the first table or to the second table. Whwn I'm in a table, how can I move to the other?
Well, you didn't say you wanted to move between tables in the original post 🙂
There is no 'automatic way' to move between tables. You must navigate through paragraphs, checking if ParagraphType is wpIsTable. But while doing this, check if you are 'still in the same table' (ParentTable, I guess), otherwise, it will not work.
@gurevitz:
Thanks to your answeer. It helped a bit, but I still have some ptoblems to control the things.
In my header, I have a line with a logo, then I have 2 tables with 4 lines each. The variables I have to put will be one at the first table and the other at the second table.
I could move to the first table or to the second table. Whwn I'm in a table, how can I move to the other?
Alessandro, Thanks.
The answer is correct. A good way to start is
par : TParagraph;
par := HeaderFooter.Get(...).FirstPar;
now you can use a loop with par, par := par.NextPar to find your table and in this table access any cell using the Cols property.
Julian
#5♥ 0
This category is archived. No new posts are possible.