Print Page | Close Window

Headings in Sub-Reports

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18318
Printed Date: 04 Apr 2025 at 10:19pm


Topic: Headings in Sub-Reports
Posted By: avallone
Subject: Headings in Sub-Reports
Date Posted: 24 Dec 2012 at 5:43am

Perhaps you can help me with a problem I am having with Crystal Reports. I have a sub-report that has its own set a page headers. These are distinct from the page headers of the main report.

 

The heading show up when I run the sub-report by itself but when I run the main report, the heading portion of the sub-report is suppressed, only the detail lines show.

 

I cannot solve this by moving the heading to the main report because the sub-report is used in all three of my reports. In two of the reports I have two distinct detail sections.

 

I also tried to create group headers for the sub-reports. These are also suppressed in the main report.

 

Any help will be appreciated, I have been struggling with this problem for several day.

 
Bob Avallone



-------------
Bob Avallone



Replies:
Posted By: hilfy
Date Posted: 28 Dec 2012 at 3:52am
This is actually fairly easy, but not really intuitive.
 
1.  Create a group in your subreport that only occurs ONCE - I usually use whatever field(s) are linked in the Subreport Links.
2.  When configuring the group, turn on "Repeat Header on Every Page".
 
This will give you group headers that work as page headers.
 
Unfortunately, there is NO way to simulate page footers in subreports.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window