Crystal reports variable page breaks.

Crystal reports 2011 Version RTM

I need to control the use of page breaks in Crystal Reports.  The problem is that the vertical size of a group varies on the amount of data in the group. The group contains multiple sub reports.  On some pages more than one group can be printed on a single page.  If a group cannot be printed on the page it moves to the next page. If a group is large than a page it will print on multiple pages.  The problem occurs when a large group prints on multiple pages, I need the next group to start on a new page.  I do not want all groups to print on a new page.

The print size or line height varies on the report so counting lines is not reasonable.  

How do I accomplish this ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I really can't think of any way to accomplish what you want.

You need to track the pages a group takes and there is no easy way to do that.  I will try a couple of things

Can you upload the report so I don't have to build an artificial report and data to test with?


 Could you save the page number in a variable in the group header, and then do a "New Page After" in the group footer if the page number was not the same as the one in the variable?

 It _seems_ like that would work, but I'm not really sure about the exact order that CR uses when it comes to things like group headers and footers, and starting new pages.  When I've tried to look at things like that in the past, it didn't seem to work in the "obvious" way.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Might work.  I don't know what will work so I plan on trying a couple of ideas to track that it is multiple pages.

ONe thing that will come close is to set the NEW PAGE AFTER in the group footer

fpkeeganAuthor Commented:
This solution of tracking the current page number worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.