I have used the createheaderfooter and another post to create the header from xml file....
- the template.docx is blank except for page orientation and magin settings.
- i have sucessfully added the header1.xml part to the document... I think the issue is in creating the rel to the new header.
- i have tried doing so using:
Relationship relationship = mainDocumentPart.getRelationshipsPart().getRelationshipByID("rId6");
createHeaderReference(wordMLPackage,relationship);
wordMLPackage.save(new File(baseDir + "/header-added.docx"));
but no ref is being made..???
I have attatched the full src..
thanks
