Hi,
I am trying to assemble a word document out of several sections or clauses. Say we have 4 sections.
section1.docx
1. Clause ABC
This is some text
section2.docx
2. Clause DEF
This is some text
section3.docx
3. Clause GHI
This is some text
section4.docx
4. Clause JKL
This is some text
Each clause document contains its styling, numbering, etc...
Now, depending on some run time conditions, I need to insert at run time some (or All) of these clauses into a word report document.
Using AltChunk seemed to me to like a good choice. So I went ahead with that and was able to build my document out of the different sections. Except for 1 major detail: "numbering"
I.e: Say I need to insert section2.docx and section4.docx in my final document. Today, with what I have, my final document looks like this:
2. Clause DEF
This is some text
4. Clause JKL
This is some text
The numbering are obviously off. I would like to have instead:
1. Clause DEF
This is some text
2. Clause JKL
This is some text
Is there a way to go by solving this with docx4java? If not, can you point me to another tool which could help me achieve something like that.
I thought of leaving out the numbers in the sections documents and use instead content control to have those numbers bound and replaced at run time ...but it just
does not look to me like a natural way of doing it, and I can see it go out of hand very quickly with sub-numbering, i, ii, iii, etc...
Thank you.