Apply page breaks within Repeating table - InfoPath Dev
in

InfoPath Dev

Apply page breaks within Repeating table

Last post 06-23-2011 09:42 AM by Stara Raj. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 06-10-2011 07:58 PM

    Apply page breaks within Repeating table

    Hi,

     I'm using repeating table within repeating section. How do I apply page breaks after certain number of rows so table headers appear on every page?

     Is there a way to apply conditional formatting to apply page breaks after every 10 rows?

     Thanks in advance,

    Stara

  • 06-10-2011 09:00 PM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: Apply page breaks within Repeating table

    hmmmm tricky tricky...I wonder if you could put a 'page break' in a normal section with conditional formatting inside one of the repeating table cells. Then conditional formatting would be to make it visible only for certain position #'s of the current row.

     I'll see if that works and post back (feel free to try it yourself too ;-)

  • 06-13-2011 08:29 AM In reply to

    Re: Apply page breaks within Repeating table

    Thanks. I tried your suggestion but still no luck. I actually used count function to count rows. Please let me know if it works for you.

     

    Thanks

  • 06-19-2011 04:57 AM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: Apply page breaks within Repeating table

    I've attached as close as I got. The method would require you to specify how many rows before a page break by changing the 'MOD' value in the conditional formatting expression.

    You could further fiddle this method to prevent the page break on the first row, but you would then not know how much of the page above the table is taken up with other content already, especially if expanding sections/fields have been used.

     Plus the page break seems to occupy space itself, which inserts an unwanted initial vertical offset.

    I think this has been tackled before by Matt Faus and it was a fairly complicated process - might be worth doing a search under his posts/blogs if you want to go through the rabbit hole.

  • 06-20-2011 04:28 AM In reply to

    Re: Apply page breaks within Repeating table

    Can you please post the formula for each section and also describe the layout you used? I was unable to open the file. I guess you're using higher version of Infopath. I'm using 2003.

    Thanks so much

     

     

  • 06-20-2011 04:43 AM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: Apply page breaks within Repeating table

    Look at me suddenly going all hoity toity with my 2007 Infopath - I should have remembered my roots! I'll upload a 2003 one for you tomorrow. But it's not an ideal solution anyway - if you are comfortable editing xsl files you might find this post useful:

    http://www.infopathdev.com/forums/p/19481/67530.aspx#67530

  • 06-20-2011 07:57 AM In reply to

    Re: Apply page breaks within Repeating table

    Hi,

     This is exactly what I needed. Editing XSL works very well for me. However, on the 2nd page -  intersection of 1st column- 1st row, first cell is empty. Why does this occur? I have attached a screenshot

    Any thoughts on how to resolve this issue??

     Thanks so much for all your help.

     

     

  • 06-23-2011 09:42 AM In reply to

    Re: Apply page breaks within Repeating table

    Skarn,

     I tried editing XSL files and it works well. But the first cell after page 1 is empty. Any idea on how to resolve this issue?

     

    Thanks a lot

     

     

Page 1 of 1 (8 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.