Tuesday, August 10, 2010

Continued ...

Continued ...

'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.

continued2.gif

Walking through the more important fields:
  • InitPT - - initializes a page total object 'contd_footer' - for more info on this check the user guides.
  • ET - - within the table, adds the total into the page.
  • 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 - Continued ... - 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 - - this closes out the page total command.

0 comments:

Post a Comment