Replacing variables in a word document template with java
问题 I want to load a template word document to add content to and save as new document. I'm working on .doc file. After a long research I only found solutions for docx : http://www.smartjava.org/content/create-complex-word-docx-documents-programatically-docx4j http://www.sambhashanam.com/mail-merge-in-java-for-microsoft-word-document-part-i/ So I want to replace any variable written in this format: $VAR by its value. Can I do it with velocity or Apache-poi, what is the best solution for it. Any