I'll make it clearer now and I know what's wrong.
In all my rtf everything works fine, but if I made a table and put my begin/repeat loop in it, it's not working anymore.
Here's an example, imagine that my rtf is like that
Invoice n°<Number>
@beginrepeat!
Proposal n° <ProposalNumber>
Object | Price | Number of unit | Total |
@beginrepeat![ <ObjectName> | <Price> | <NumberObject> | <Total> |
@endrepeat![ |
@nextcode
@endrepeat!
If I put my beginrepeat![ outside of the table it's working, but when it's inside like in my example I don't have the right order in the process.
In order to work I should work with this order @beginrepeat!, @endrepeat! then the lines between those two key words.
When it's in the table I have @beginrepeat!, @nextcode, @endrepeat! which is wrong.
I think the table is the problem when I try to put key word like @beginrepeat[ in it. and I wonder to know if there's a way to use WPTools in that particular case.
Maybe there's something to do to "recreate" the table by code.
Thanks.