I am not sure how to interact with word document content from java... I would suggest write a COM object with
VB/C whatever and then call it from java - it a lot easier to work with word from
VB or C. (personally I prefer Delphi). Simply write API that will return to your java application the data you need.