in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Setting KeepTogether on Section not working

Last post 02-05-2008 2:26 AM by PatD. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 12-20-2007 11:45 AM

    • asauls
    • Not Ranked
    • Joined on 12-19-2007
    • Posts 4

    Setting KeepTogether on Section not working

    If I set KeepTogether on a section that has a lot of text the output is too much text for one page, i.e. the text goes to the very bottom of the page with the footer copied over it.  The next page has no data.  The rest of the data is lost.  I also tried setting KeepTogether on the group as suggested by a related kb item.  No matter what, I get the same result.  If I don't set KeepTogether then it page breaks properly.  BTW, how do I attach a screen shot to this post?

     

     

     

    Filed under:
  • 12-21-2007 10:39 AM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 515

    Re: Setting KeepTogether on Section not working

    >> If I don't set KeepTogether then it page breaks properly.

    Can you describe what you are trying to accomplish?  It sounds like if KeepTogether = True then the large section of text is kept together regardless of how it looks.  And if KeepTogether = False, then it breaks properly.  I can't see a problem- please explain.

     You can add 1 attachment per post from the options tab when you're posting.  Is the item in question just a textfield with a large amount of text?   

    Regards,
    Greg L

  • 12-21-2007 1:22 PM In reply to

    • asauls
    • Not Ranked
    • Joined on 12-19-2007
    • Posts 4

    Re: Setting KeepTogether on Section not working

    Please see attached file.  As you can see, the text runs to the bottom of the page and the footer is superimposed over it.

  • 12-21-2007 4:31 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 515

    Re: Setting KeepTogether on Section not working

    yes, but does this happen when KeepTogether = False?  You said it breaks properly when KeepTogether = False.  I understand that problem occurs when KeepTogether = True, is this not what you expect to happen?

    Can you please explain the issue more clearly?

    Thanks
    -Greg

  • 01-04-2008 12:43 PM In reply to

    • asauls
    • Not Ranked
    • Joined on 12-19-2007
    • Posts 4

    Re: Setting KeepTogether on Section not working

    Greg, if you look at my previous attachment you can see that the text flows off the bottom of the page with the footer superimposed over it.  Although it works correctly when KeepTogether = False, i.e. I get several pages of text with the page breaks properly set, it seems to me that when KeepTogether = True that the text should be displayed over several pages with no footer and space at the bottom of each page for a more elegant display.

  • 01-04-2008 5:07 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 515

    Re: Setting KeepTogether on Section not working

    I saw the text overflow, but I'm not convinced that's how KeepTogether is supposed to work.  If the contents of the field overflow, a page break will be entered before the field to push it onto the next page for more room when KeepTogether is True.  It will not insert page breaks within the field and eliminate page footers.  Page breaks within the field only occur when KeepTogether is False.  So if the field is too large even for one whole page then KeepTogether will have to be False.

    This appears to be the behavior for all versions of the control.  Have you witnessed this happen after an upgrade?

    Regards,
    Greg L

    Filed under: ,
  • 01-07-2008 11:27 AM In reply to

    • asauls
    • Not Ranked
    • Joined on 12-19-2007
    • Posts 4

    Re: Setting KeepTogether on Section not working

    Thanks for the response.  I have seen this with the latest version without the service pack.  It just doesn't seem like the right behavior to me but I'll adjust for it.

  • 02-05-2008 2:26 AM In reply to

    • PatD
    • Top 200 Contributor
    • Joined on 11-06-2006
    • Posts 17

    Re: Setting KeepTogether on Section not working

    Besides setting the section to KeepTogether, also highlight all of the fields in the section and set them to KeepTogether=true.  I've run into this same problem and this seems to solve it.

    -Pat-

Page 1 of 1 (8 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.