Avoiding page breaks in middle of section or table - InfoPath Dev
in

InfoPath Dev

Avoiding page breaks in middle of section or table

Last post 05-17-2006 10:28 AM by Matt Faus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-17-2006 03:43 AM

    Avoiding page breaks in middle of section or table

    I have 2 questions related to page breaks, things that can be done in Word and I wonder if a similar effect can be achived in InfoPath:

    1. Is there a way to prevent a section or table from breaking on a page break when printing a form, similar to the paragraph property "keep lines together" in Word. I.e. I would like the section or table to be printed on the next page with white space on the end of the current page. Note this should happen IF NECESSARY (i.e. to avoid a split), so inserting a page break before would not achieve the same effect.

    2. Can I have a 2 column mode, so a table would start on the left column and continue on (spill into) the right column?

    Thanks,

    -- Shaul ([email protected])
  • 05-17-2006 05:42 AM In reply to

    Re: Avoiding page breaks in middle of section or table

    Hello Shaul,
    About your 1st question, you can try this tutorial.

    http://infopathdev.com/howto/tutorials/default.aspx?i=80c11a66b08a4572bc2b17f391319a0f
    About your 2nd question, I could not understand what you were trying to say. Can you please give more details about that.

    Hope this helps!
  • 05-17-2006 10:28 AM In reply to

    Re: Avoiding page breaks in middle of section or table

    For the second question, yes this is possible, but you will probably have to use a tricky filter on two expression boxes.

    Try these out on two expression boxes in a two-column table. The hard part is getting it to break on the end of a word instead of wherever the middle of the character string is, but I'll let you figure that out :)

    Left column:
    substring(my:field1, 0, string-length(my:field1) div 2)

    Right column:
    substring(my:field1, string-length(my:field1) div 2, string-length(my:field1))
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.