Page 1 of 1

Use Repeat and Conditional

PostPosted: Fri Mar 18, 2016 3:07 am
by ceugster
Hi, I am very new to these tools and docx4j. I worked with odfdom and openoffice until now but have to implement a kind of document merger for ms office. I downloaded and installed the tool into word and looked at the examples in the git repository concerning the content controls, loaded down some of them and tried them out. The examples worked fine, but I am missing some hints how to gow further. My requirements are:

The customer lays out a word document with given attribute names. This word document is used as a template for several entries (say a letter, that is sent to an arbitrary number of persons). Each letter has single attributes and sometimes some attributes (in a table) that are repeated (repeat). Paragraphs with empty attribute values are removed (conditional).

My question is: how can I achieve this using the repeat and conditional. I did not find any examples and did not work it out myself.

Thank you!

Re: Use Repeat and Conditional

PostPosted: Fri Mar 18, 2016 11:04 am
by jason
To add repeats and conditionals, you'll need a different AddIn to the Docx4j Helper AddIn. Sorry for the confusion.

The AddIn you need is one of the two which are linked to at