Merging a document into a cell (java)

Hello,
We are currently evaluating Aspose.Words java as a replacement for MS Word in one of our EDMS application. So far the test seems to be concluding except for the fact that some features we need are missing like the fields evaluation, the image support and the automatic TOC generation.
What we are trying to do at the moment is merging the content of one document into an other, not only into a paragraph but also a table.
The content of the document to be merged can include multiple tabs with some more tabs or paragraphs inside.

To locate the position of the document to be inserted, we use a sentence like that:
<% FUSION ENREGISTREMENT%>
with ENREGISTREMENT the name of the document to be inserted.

Is there a way to do that and if so could you give us some code samples?
I attached an example of what we want to do.

Thank you very much.

David

Please check the following thread:

https://reference.aspose.com/words/net/aspose.words.mailmerging/ifieldmergingcallback

It has code examples there which seem to fit well in your case. Please let me know if it helps of if you have more questions on this.

Best regards,

Thank you for your answer.

We actually looked at this thread but the problem was that this method works with sections, what we cannot do since the the content of the document must be inserted into a table. Could we use the document builder fonctions to recreate manually the paragraphs and tables from the source document at the location we want to?

The method actually presents two ways of inserting documents - node-by-node or section-by-section. You can remove section-by-section part and always use node-by-node.

You were right. It now works.

Thank you very much.