Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Subreport page header Post Reply Post New Topic
Author Message
Jonart
Newbie
Newbie


Joined: 02 Apr 2012
Online Status: Offline
Posts: 16
Quote Jonart Replybullet Topic: Subreport page header
     Posted: 02 Apr 2012 at 1:16pm
Within a subreport the page header is not repeating at page break. Is there a way to do this?
IP IP Logged
aharonmc
Newbie
Newbie


Joined: 02 Apr 2012
Location: United States
Online Status: Offline
Posts: 10
Quote aharonmc Replybullet Posted: 02 Apr 2012 at 1:33pm
Check out this link for a solution:
http://tek-tips.com/viewthread.cfm?qid=1642410
IP IP Logged
Jonart
Newbie
Newbie


Joined: 02 Apr 2012
Online Status: Offline
Posts: 16
Quote Jonart Replybullet Posted: 04 Apr 2012 at 1:03pm
Thanks aharonmc. Works perfectly though I don't understand why!

Jonart
IP IP Logged
aharonmc
Newbie
Newbie


Joined: 02 Apr 2012
Location: United States
Online Status: Offline
Posts: 10
Quote aharonmc Replybullet Posted: 05 Apr 2012 at 11:12am
I'm glad it worked for you.
 
    In the sub, create a formula like this:

    whilereadingrecords;
    ""

    Insert a group on this formula and check "repeat group header on each
    page". Make sure this is your group #1. Then add the header fields to this
    new group header.
 
Since, as you discovered, subreports don't have page headers, creating a group on a 'blank' formula (so all records belong to this one group) and then checking 'repeat group header on each page', you are mimicing exactly what a page header does.
IP IP Logged
Jonart
Newbie
Newbie


Joined: 02 Apr 2012
Online Status: Offline
Posts: 16
Quote Jonart Replybullet Posted: 06 Apr 2012 at 8:10am
That makes sense. Thanks again.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum