Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Break

Status
Not open for further replies.

cardi

Programmer
Joined
May 30, 2007
Messages
29
Location
CA
I have 3 headers (workgroup, activities and marketing manager). there are no break on the 2 last. The details is the informations about them (address, phone, etc). I don't want to put the informations in a footer. I want to check if there are enough space to be sure that a header is not the last information at the end of page. I want at least one record below the header, if not, make a page break before printing the header and print it at the beginning of the next page.

I have read about this problem, but my details section don't have the same height. I have a field "description" so it takes between 1 and 6 lines.

Thanks
 
A crude solution is to always begin a new page if the group won't fit. Right-click on the group header or footer and choose Change Group. This lets you choose Keep Group Together

If you want the group to 'break' if there is room for the header and one detail line, that is more tricky. You could do it as follows:
a) Do a simple Running Total that counts every detail line and resets for each group. (See see FAQ767-6524 if you're not already familiar with them.)
b) Create a second detail line and copy the normal detail line information.
c) Put header information on the first detail line, plus the normal detail line information.
d) Set the 'header' detail line to suppress if this is not the first record in the group. (Right-click on the section and choose Format Section. Then choose the formula icon (x+2 and a pencil) for suppression.)
e) Set the second detail line to suppress if this is the first record in the group.

PS. It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
I'm using the version 9.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top