I would like to replace a mail merge field with a table. I do it like that:
In
Code
OnGetTextToInsert(Sender: TObject; const inspname: String; const Contents: TWPMMInsertTextContents; var Done: Boolean)
I use Contents.MergePar.AppendNewTable() and so on.
This basically inserts the table but above the table the name of the merge field is visible. It seems that it left the paragraph with the mail merge field untouched and instead it appended a new paragraph and added the table to that new paragraph.
I would rather like the table inside the paragraph where the merge field resides. I couldn't find an "InsertNewTable" instead of an "AppendNewTable". But maybe my whole approach is wrong.
Can you please explain to me how I can insert a table in a mail merge?
Many thanks in advance,
Dirk.