Crystal Reports Suppress Page Break

Mark01
Mark01 used Ask the Experts™
on
I am trying to get the Head, Subhead and Body fields to appear on the same page. With the current report design, the Head, Subhead appear on one page and the Body field appears on a separate page. I worked with the Keep Together feature in the Section Expert without success.

Please help me resolve the problem.
DesignCover_EE.rpt
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Hi,

The data length of field used under details c section is making it to move to page 2 as the data is not getting fitted on page 1.
You can try increasing the width of the field as in attached modified file or is there is a specific reason to use that much width, then you have to check for any other alternatives.
Cover_EE.rpt

Author

Commented:
Hi Raghavendra,

I am trying to design a report with a head, subhead and body. The body field should appear on the same page under the subhead field. I used multiple sections in case the head/subhead are null values for certain reports.

Author

Commented:
One solution is to put the the Head, Subhead and Body fields in a single details section. If a "isNull({Cover_Page.Head})" suppress formula is used for the Head field, the Subhead and Body fields appear on a single page. Is there a better solution?
Commented:
If you put head, sub head and body in same detail section, there is chance of the text being overlapped from those 3 fields. Whatever you have done is right, but the issue is with the width of body field, the text from that field is too lengthy and doesn't fit on one page and hence, it's getting moved to the next field.

Even if Head is null, if the text from Body field doesn't fit on one page along with Sub Head, it may move to the next page again.
Only option is to increase the width of Body field or to reduce the font size, I am sure the second option isn't a viable one.

Author

Commented:
I’ll try using two body fields, the first one will be limited so the amount of text will not exceed the amount of space on the page. Thank you, Raghavendra Hullur.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial