Problem with table headers in repeating table - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Problem with table headers in repeating table

  • 07-19-2007 12:35 PM In reply to

    Re: Problem with table headers in repeating table

    I have figured out how to make this work. The EXPRESSION you need to use in your conditional formatting is:

    For the Page Break Section:
    round(count(../preceding-sibling::my:group2) div 8) != count(../preceding-sibling::my:group2) div 8 OR count(../preceding-sibling::my:group2) = 0

    For the Header Section:
    round(count(../preceding-sibling::my:group2) div 8) != count(../preceding-sibling::my:group2) div 8 AND count(../preceding-sibling::my:group2) != 0

    Note it's slightly different for each section so you don't get an initial page break. Also I was wrong about the placement of the page break. Easiest to put it at top above the header. See the screen shot.

    The attached example form template demonstrates this technique.

    Designer screen shot of sample form for printing table headers on each page.

    2007-07-25: This post has been edited for accuracy.

    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
View Complete Thread
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.