Hi,
does anyone knows/has experience on how to add an altChunk tag and relationship to an existing docx document?
What I want to do is to merge one docx document into another docx document at a specific location. One way to let Word 2007 perform the merge of content, styles, ... should be to import the (sub)document using altChunk. Trying to output such a docx document using docx4j works, but the created file can not be opened (opening the created file in Word fails).
What I did so far is:
- create a Relationship to the external docx file (properties TargetMode and Target set)
- add that relationship to the relationships of the main document part of the target package
- create an altChunk element and add it into the body of the target document
Do I miss something?
Regards
Holger