Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Dynamic Report Header Post Reply Post New Topic
Author Message
r140396
Newbie
Newbie
Avatar

Joined: 16 Sep 2007
Location: United States
Online Status: Offline
Posts: 6
Quote r140396 Replybullet Topic: Dynamic Report Header
    Posted: 08 Sep 2009 at 2:21pm
I have a report that requires the Report Header to change when the Group name changes.   Example: Report Header 'Third Party for <Group Name>  where <Group Name> is from my first report group.   
 
I've been able to get it to work except I have three records in my first group and it prints the group name which is 'TEST GRP1' on the first two groups, but then prints 'TEST GRP2' on the last record for the first group and the first record for 'TEST GRP2'
 
Like this:
 
           Third Party for TEST GRP1                 page 1
 
TEST GRP1
   Input type 'INSERT"
       Detail line
 
  Third Party for TEST GRP1                 page 2 
 
TEST GRP1
   Input type 'UPDATE"
       Detail line
 
 Third Party for TEST GRP2                page 3 
 
TEST GRP1
   Input type 'REPLACE"
       Detail line
 
 Third Party for TEST GRP2                 page 4
 
TEST GRP2
   Input type 'INSERT"
       Detail line
 
Can anyone help me to get this to work, not sure what I'm doing wrong.
Golfer Girl
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Sep 2009 at 2:35pm
I am going to take a stab that you are referring to the Page Header and not a report header, that you have a text field that you inserted group name field into it.
It is looking at the last field read not the next field (last record from previous page).
 
create a formula field as "header text" or whatever:
next({table.fieldyou want displayed})
Replace the group name field in your text box with this.


Edited by DBlank - 08 Sep 2009 at 2:36pm
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.018 seconds.