Sorry, I do not. The key to working the problem out should be quite straightforward though and I think that you need to do this.
Use Word to create a very simple document template file; it need only contain maybe one sentence of text. Re-save that same file using Word again but this time as a .docx. Use a tool like pkunzip or winRAR to unzip both files so that you can look at the xml markup. Dig through the markup to spot what is different between the two files and it is likely that the changes to the markup between the two otherwise identical files are the key. It has been a very long time since I did look, but I think the problems are caused by a single line in the markup that identifies to Word's parser the file type. Once the relevant piece of markup is identified, then it is important to track down just which class within XWPF sets/writes this value. Once this has been found, it should be quite a straightforward task to amend amend it so that the file is written away correctly. I should have some time today and will take a look into it myself to see what I can find but I cannot offer any promise as to when this will be. Yours Mark B -- View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-read-the-value-of-bookmarks-docx-tp5710184p5710750.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
