Page 1 of 1

Using docx4j to fill-in form fields

PostPosted: Tue Mar 29, 2011 7:40 am
by motojma
Howdy... I'm new to docx and have a question. I have a microsoft word document (docx) with form fields (dates, text, combo-box, etc). Can I use docx4j to auto fill-in the form fields using data from my database and save the result as a word document? If so, is there a sample that would get me started?

Thanks!

Re: Using docx4j to fill-in form fields

PostPosted: Tue Mar 29, 2011 8:29 am
by jason
Hi, there's nothing to stop you using docx4j to do that, but at the same time, there is nothing beyond the low level support to help you to do it. See also viewtopic.php?f=6&t=629

If you can change your docx to use content control data binding instead, I'd encourage you to do that ... docx4j has strong support for that. See the databinding sub-forum.