It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-19676) as ‘Not a Bug’.
Please read the detail from here:
Inserting Documents Dynamically
- Using of a single document instance on iteration
The same document instance cannot be used to fill it with data multiple times. Once a document instance is filled with data, it becomes a ready report and it cannot be used as a template second time. So in your scenario, the subdocument is filled with data on the first iteration and then it is not refilled on the next ones, hence the same data appears several times in a result document.
To make it work as expected, a unique document instance should be provided to the engine on every iteration. We have modified your code and template to get the desired output. Pleas check the attachment. DocsModified.zip (19.5 KB)