cancel
Showing results for 
Search instead for 
Did you mean: 

Excluding main body of report from subsequent pages

Former Member
0 Kudos

Hello,

I created a Crystal Report that includes a main body that lists patient demographic information and a sub-report that list measures significant to that patients clinic visit.  When the patient has a lot of sub-report data the details run into another page. This is acceptable but I need to prevent the main body from repeating. Instead I would prefer to include only the header and/or footer to identify the patient. Is there a setting somewhere where I can specify to include the main body only on the initial page?  Would I need to create a group and place that content in it in order to accomplish that?

Thanks, Hector

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

Try this:

1.  Group by Patient.  Set the group to "Repeat Header on Each Page".

2.  In the Patient Group Header section put the data that you want to see repeated on each page.

3.  Use the Details section to display the demographic data you don't want to see on each page.

4.  Put the subreport in the Group Footer.

-Dell

Former Member
0 Kudos

Thanks for the reply.

It looks like there are still some configurations needed. It is beginning the subreport on a new page.  When I place the subreport on design mode I see "New Page Before" checked but it is greyed. I am thinking that it could be the source of the problem but don't know how to access that. Do you have any ideas? Hector

abhilash_kumar
Active Contributor
0 Kudos

Hi Hector,

Right-click the Subreport > Format Subreport > Common tab > Uncheck 'Keep Object Together'.

That should print the subreport correctly.

-Abhilash

Former Member
0 Kudos

Thanks,

I did a combination of the two. I created a group by patient, moved what I wanted repeated in the group header, moved what I wanted only once to the group detail and I noticed as Abhilash mentioned that the sub-report was checked "Keep Object together".  I unchecked that. It was not working when I kept the sub-report in the group-footer but it worked when I moved it to the group detail.

This not a powerful report that I am sure my customers will be elated.

Thanks so much for your help. Hector

Answers (0)