Adam Nofsinger
Adam Nofsinger

Reputation: 4174

How do you Keep Group Together across columns in Crystal Report?

I have a multi-column Crystal 2008 report that is grouped on a date field, and I want to prevent that group from being split across the column to column boundary.

Googling it, it seems impossible - no one even has some sort of hack for faking it.

Here is an image of the issue - I would like Friday the 26th to all be in the second column.

Screenshot of Issue in Crystal

Upvotes: 5

Views: 4574

Answers (4)

defrosted
defrosted

Reputation: 46

Nothing is impossible! While initially discouraged with the voted answer, I kept searching and found something about using a subreport for the "details". Then I used a mailing label, although this may not be necessary, but in my use I wanted each group to have identical size, this worked perfect to make sure the groups stayed together in the columns. It is a little clumsy but seems the subreport won't cross columns.

Anyway this is an old topic, but thought I would leave this here just in case someone dusts it off.

Upvotes: 3

Glenn Laderer
Glenn Laderer

Reputation: 1

If you can determine beforehand that you want the group to print on the next column, have a blank detail line extra at the bottom of the detail lines and check the print at bottom of page and suppress it with a formula that is controlled by either a crystal variable or a database field. This is the only way I have found to cause a group to stay together. You find the print at bottom of page in the section expert, add the blank line as the last of your detail lines.

Upvotes: 0

Adam Nofsinger
Adam Nofsinger

Reputation: 4174

Looks like this is impossible for now.

Upvotes: 1

craig
craig

Reputation: 26262

Right click the group, select 'Change Group...', select the Options tab, check the 'Keep group together' option.

Upvotes: 0

Related Questions