Can anyone offer help on modifying Word 97-2003 documents in HWPF using POI
3.2?
I am able to use insertBefore(text) and insertAfter(text) without any issues
but my requirement is to change/replace tokens in the Word file with dynamic
text much like the unit tests, e.g. ${organization} with "Apache Software
Foundation"
When I do this with Range.replaceText("${organization}", "Apache Software
Foundation") the doc file keeps getting corrupted. In viewing the file in a
text editor I can see the replacement text but it is not compressed like the
rest of the file.