Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Different Group headers for a different pages..

edited September 2009 in General
Hi, I have read old posts but I haven't find an answer but I think
this is my defect ^^

I have a report with a group with own header and footer.
When a group is more than a page I would print a different header from
the header printed after the break.

I would print just some component of the group header but I can't
understand when the header has printed the first time (after the
break) and when it has printed beacuse there is a new page..

Thank you

Dario

Comments

  • edited September 2009
    Hi Dario,

    Try keeping track of the Group.BreakValue each time the GroupHeaderBand
    prints and compare it to the previous value. If the value is the same, that
    means you are still in the same group, different page and can alter the
    output of the band.

    For instance, inside the GroupHeaderBand.BeforePrint event...

    if FBreakValue = ppGroup1.BreakValue then
    ppLabel1.Caption := 'Changed'
    else
    begin
    ppLabel1.Caption := 'Original';
    FBreakValue := ppGroup1.BreakValue;
    end;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2009
    Thank you Nico

    On Fri, 4 Sep 2009 06:51:13 -0600, "Nico Cizik \(Digital Metaphors\)"
This discussion has been closed.