Bookmarks and templates advice
Posted: Thu Apr 14, 2011 1:24 am
Hi,
Wonder if you have time to offer some general advice.
Currently we have an application that populates Word (2003 + compatibility pack) documents using bookmarks as placeholders and VB to insert values. We wish to move to a server-side, java-based solution.
There are two types of bookmark placeholder:
1. single valued - vb locates the bookmark and adds a value immediately after it (this is the easy case)
2. multi-valued - these bookmarks always exist in table cells. first vb locates the table (based on bookmark name), then adds the required number of rows, then, for each column (based on a bookmark name) vb inserts a value and moves down a row.
I'm new to docx4j and trying to determine the best approach. Considering case 2 (multi-valued), can this be done with the CustomXMLBinding stuff? Would it even work in Word 2003? Or should I mimic the vb and manually add rows to the table? Should I be using XPath to locate the bookmarks?
Any advice welcome.
Many thanks.
Wonder if you have time to offer some general advice.
Currently we have an application that populates Word (2003 + compatibility pack) documents using bookmarks as placeholders and VB to insert values. We wish to move to a server-side, java-based solution.
There are two types of bookmark placeholder:
1. single valued - vb locates the bookmark and adds a value immediately after it (this is the easy case)
2. multi-valued - these bookmarks always exist in table cells. first vb locates the table (based on bookmark name), then adds the required number of rows, then, for each column (based on a bookmark name) vb inserts a value and moves down a row.
I'm new to docx4j and trying to determine the best approach. Considering case 2 (multi-valued), can this be done with the CustomXMLBinding stuff? Would it even work in Word 2003? Or should I mimic the vb and manually add rows to the table? Should I be using XPath to locate the bookmarks?
Any advice welcome.
Many thanks.