Hi,
I have written java class to use word document template to generate word document. Please find the program below, which runs without error but the generated word document is not replacing the fieldname.
Could any one help to rectify the issue?
public static void main(String args) throws Exception {
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(
new java.io.File("FAX.docx"));
List<Map<DataFieldName, String>> data = new ArrayList<Map<DataFieldName, String>>();
Map<DataFieldName, String> map = new HashMap<DataFieldName, String>();
map.put( new DataFieldName("GREETINGLINE"), "Daffy duck"); ...