We help IT Professionals succeed at work.
Get Started

How do I programatically change the Crystal reports formula for a Groupfooters "New Page After" property?

Last Modified: 2012-08-13
I want the user to be able to select a checkbox if they want a page break after each group of information.   The following code works fine if I don't have a formula in the "New Page After" formula.  But as soon as I put "formula = Not OnLastRecord" in at design time setting the property to true or false has no effect.   It always puts in a page break.

        If cboxPageBreak.Checked Then
            objReport.GroupFooterSection2.SectionFormat.EnableNewPageAfter = True
            objReport.GroupFooterSection2.SectionFormat.EnableNewPageAfter = True
        End If

How can access the formula section of "NewPageAfter" to remove the formula at run time?
Watch Question
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
This problem has been solved!
Unlock 2 Answers and 15 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE