We use aspose.word to do a mail merge. We know that nested mail merging is not supported but we do need this functionallity so we thought of a new idea, to illustrate:
Normal template and values
On the SpecialFieldMerge event we check if the field starts with a specified prefix, this means our code should import another template at this location. We merge the specified template and put the output to the field.text property.
The problem is that tables etc. from the imported document do not render correctly (the definition tags appear to be rendered as text).
Is there any sollution for this? Or can we do something with the DocumentBuilder method in order to create a nested mail merge some other way?
Hope you can help us.
Yes, it is not really possible to copy fragments of formatted text easily in Aspose.Word at the moment. You can only copy sections.
Have a look at the Product Catalog demo included with the product (you might need to download the latest version as it was released just a few days ago), it shows how to workaround nested mail merge regions issue, maybe it will help in your case too.
If the demo does not help and yelds no useful ideas, send your documents and some description what you want to achieve to me, to email@example.com and I might just build another demo for you and include similar solution in the product demos later.