I have a requirement where i need to insert entire content of a word document into another document at a particular location. This is what i was trying to do:
DocumentBuilder builder = new DocumentBuilder(desDoc);
builder.moveToDocumentStart();
builder.moveToMergeField("nameOfMergeField");
Document srcDoc = new Document("Path of source word doc");
builder.insertNode(/*Dont know how to get the srcDoc as a node*/);
How can i get the entire source document as a node or is there some other way of doing what i am trying to do?
Please let me know.
Thanks,
Kedar