Joined: 08 Mar 2013
Online Status: Offline
Posts: 64
Topic: Keep Details section together Posted: 13 Oct 2014 at 5:25am
I am using Crystal Reports XI R2.
I have a report that prints all the work orders for our shop. I have one Group and it has 22 Detail sections. In one of those Details sections I have placed a Text field with the name of the section, Packaging. I then have several more text objects containing db fields that will print in that section if there is data in them for the product selected. I have sized the height of the text objects containing the db fields to only show one line and set it to 'Can Grow'. I have also set it to suppress embedded field blank lines.
The problem I am having is that depending on the number of fields with data in them, the section often breaks across the page so I end up with "Packaging" at the bottom of the page and the text objects containing the packaging info prints on the following page.
I have selected 'Keep Together' in the Section Expert, but it does not make any difference.
I want to keep this Details section together and have it move the entire section to the second page rather than break it. How can I accomplish this?
Joined: 08 Mar 2013
Online Status: Offline
Posts: 64
Posted: 13 Oct 2014 at 9:34am
I have five text objects in one single Details section I call Packaging.
It looks like this: Packaging: Text Object 1 Text Object 2 Text Object 4 Text Object 4
The word 'Packaging' above is also a Text Object. Text Objects 1-4 have formulas in them that may or may not result in data depending on the product being produced and options set in our ERP.
The problem I'm running into is this: If sections above the Packaging section have enough data to push it too close to the bottom, then CR prints 'Packaging' near the bottom of the first page and prints Text Objects 1-4 (the actual packaging information) on the second page.
I need to know how to keep this one Details section together so it does not break onto the next page. I don't care if CR pushes the entire section to the next page if there is not enough room on the first page, I just want the section to remain intact.
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 13 Oct 2014 at 10:47am
I do not think there is a setting per se.
try and expand the upper text box with "packaging:" to be the height of the text plus tee height of the first line of the Text Object 1 (if it existed) so they actually overlap some. Make sure it is set to keep object together.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum