My code:
- Code: Select all
RelationshipsPart rp = wordMLPackage.getMainDocumentPart().getRelationshipsPart();
for (Relationship r : rp.getRelationships().getRelationship()) {
if (r.getType().equals(Namespaces.FOOTER)) {
FooterPart fp = ((FooterPart) rp.getPart(r));
// setup is a HashMap(String, String), the same one I use for the other variable replace which is working on the MainDocumentPart
fp.variableReplace(setup);
}
}
In the template, I have the placeholders like this: ${myPlaceholder}
And the only thing that is happening is that the ${ and } are getting removed resulting in just: myPlaceholder
Thanks for any help!