Hi Mark, 

Thank you very much for your code. It was very helpful and answered most of
my questions about the docx files. 

I am using .dotm templates. I give a .dotm file as input to your code, I
have put some logs in your code and track what's going on in the program, it
shows that the code runs properly and sets the bookmark's text but when I
open the output .docx file in MS Word it says there is an error in file and
can not open the file.

P.S: I changed the output format from .docx to .zip and saw the contents of
document.xml in the zip archive, the changes/replacements were there, but
still I don't know what's wrong with the file that MS Word can not open it.
should I change the coed for .dotm files?

Any comment would be appreciated, 
Thanks and regards





--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/How-to-read-the-value-of-bookmarks-docx-tp5710184p5710728.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]

Reply via email to