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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code for: Repeat group header on each page

Status
Not open for further replies.

BCarol

Technical User
Feb 14, 2002
23
AU
Is it possible to change the "Repeat group header on each page" via code?

I have code like this:

Code:
For kk = 1 To oCrystal.crReport.areas("GH2").Sections.Count
OSection = oCrystal.crReport.areas("GH2").Sections(kk)
OSection.Repeat_group_header_on_each_page = FALSE

I cannot determine what the last line above should be. Any ideas?

(Using Cr9).


 
You could look in the section expert to see if there is a check box to repeat the section on each group page
 
Yes, I can right click, choose Change Group, go to the options page, and there is a checkbox for: Repeat group header on each page.

The checkbox is on, but in certain cases I want it to be off, and would like to change it via code.


So how do I set Repeat group header on each page to FALSE in a program via code?
 
I don't think 'Repeat Group Header' can be switched off, at least not in Crystal 11 and presumably also not in 9.

What you could do is a selective suppression of the group header. Something like
Code:
not OnFirstRecord and
## YOUR TEST ##
This means the first occurance will always appear but later occurances are conditional.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
I was hoping for a Repeat group header on each page switch.

Thanks for your idea - I'll give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top