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!

Using different page headers for different sub reports

Status
Not open for further replies.

leenabhanot

Programmer
Mar 19, 2001
8
US
I have 3 subreports in my main report.
Subreport 1 is in GH1
Subreport 2 in GH2 and
Subreport 3 in GH3
Subreport 1 and the first page of 2 use the same Page headers. The remaining pages of sub 2 use a different page header and Subreport 3 uses an entirely different one.
Since the number of pages for all these reports is dynamic I don't know how I can make this happen. This is a problem because when a subreport is inserted in a main report it loses its page header section and that becomes the report header.
I am using crystal v8. Any help would be great.
Thanks a lot.
 
You have to create an additional 'dummy' group in the subreport,and make it the Primary Group of the subreport. This "Group" should be based on a field that is a constant value, so that each subreport is put in one 'Group'.
Now you tell this 'Group' to repeat it's header on each new page(change group expert), and use it as a page header. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top