I am currently evaluating Aspose.Words for Java (v3.0.1) and stumbled upon a little, hum, let’s call it “unexpected behaviour”, most of which I could fix with several workarounds I found in this forum.
Unfortunately, an error affecting mail merges with merge fields inside a table occurs here, which - according to this thread - is somewhat older.
The situation is as follows: The template (see attached template.doc) contains a table with some columns that span several columns. The table contains the merge fields. If I do a default mail merge, the document produced looks fine. However, if I add a call to document.updateTableLayout(), then the spanning columns get resized to the first column of the table (see document.doc).
Because I have to additionally create Tables after the mail merge has been completed, I cannot omit this call: the new tables look completely wrong without this call.
Is there anything that can be done about this problem?