I'm searching a way to include a docx file into a Word template using content controls : the filepath should be define in a XML input file and inject into the template to generate a new document.
I have found this post : http://www.docx4java.org/forums/data-binding-java-f16/content-control-and-altchunk-t400.html#p1202, but it seems to be a bit old and maybe there is better solution now.
Accoring to this post, there is currently no way (without using MergeDocx) to automatically replace a content control with a document using BindingHandler.applyBindings : we have to manually find the content control in the document body, get its parent and replace it by an altChunk element. However, the content control to use for that is od:component.
But even if there is no other way to do this, I don't know how to create such control using the authoring add-in : http://www.opendope.org/downloads/authoring-friendly/setup.exe.
The add-in I previously used did support this, but not picture injection, a feature that I need too ...
Well, I don't really know how to do that thought : thanks for your suggestions.