Emails and forum questions have been on fire on a subject lately. To paraphrase, 'how can I add 'Continued ...' to the bottom of a table if the contents spill over more than one page?'
I have solution that uses a template approach to dynamically add content to the page footer but Hok Min, the 'Template Meister Extraordinaire' has come up with an even more 'tricksy
' solution that I like better.
It uses the page total functionality that we support and its extremely cunning!
The image above shows the template - standard table with employee data in it. Notice the last row of the table has most of the borders turned off. I have got 'Show Gridlines' enabled so you can see it is another row in the table. There are some other fields in there too.
Walking through the more important fields:
- InitPT - <?init-page-total: contd_footer?> - initializes a page total object 'contd_footer' - for more info on this check the user guides.
- ET - <?add-page-total:contd_footer;1?> - within the table, adds the total into the page.
- Footer - <?table-footer:?> - an undocumented command (we had other plans for the command for a later release - hence the lack of doc) to specify that this row is the table footer. MSWord does not have a concept of table footer so we need to mark it as such for the rendering engine to 'see'. Notice its in the last row of the table - no borders remember (thats optional)
- PT - <xdofo:inline-total display-condition="exceptlast" name="contd_footer">Continued ...</xdofo:inline-total> - this is the cool piece. It is supposed to render the page total, but instead it will show the string 'Continued ...' on all but the last page of the table.
- EET - <?end-page-total:contd_footer?> - this closes out the page total command.
Try it out and play with it here
. This approach works with 5.6.3 and above. I'll develop out the page footer approach and post that as soon as I get it working.