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

Stopping a group footer from printing

edited July 2003 in General
I have a report where there is a group based on the date. Every time the
day changes the footer gets printed (which actually is only a blank line)
So your report looks something like this

7/21/2003 some info
7/21/2003 some more info

7/22/2003 A new day
7/22/2003 More info for day 2
7/22/2003 More info

7/23/2003 Another day



the problem I have is once I go through all the data the last line in the
report is actually a blank line for the report footer. Well in 90% of the
cases this is fine the user never knows this but once in a while all the
data while print on a page and the next page only contains this blank
footer. This is what the users notice and is an annoyance to the users to
see this blank page. So what I would like to know is how can I make the
group footer not to print at the end of the report? I have found other
times where I would like to print different things through out the report
and yet not print it at the end of the report so this would be really
helpful to me.

Thanks in advance,
Rodger

Comments

  • edited July 2003
    Hi Rodger,

    Try setting the FooterBand.PrintOnLastPage to False. This is a published
    property.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Must have missed it.
    thanks,
    Rodger


  • edited July 2003
    Missed it cause the footer has that property. I need to stop a group
    footer. Sorry if I didn't explain that.

    Thanks,
    Rodger

  • edited July 2003
    In the AfterPrint print, set the visiblity of the group footer band:

    ppGroupFooterBand1.Visiible := (pipeline.RecordIndex <
    (pipeline.RecordCount-1));

    Untested code.
    --
    Ed Dressel
    Team DM

  • edited July 2003
    It appears that the RecordIndex and RecordCount properties only exist in the
    JIT pipeline, I'm using a DB Pipeline. Is this correct?

    Thanks in advance,
    Rodger


  • edited July 2003
    Then use the dataset:

    DataSet.RecNo < Dataset.RecordCount

    --
    Ed Dressel
    Team DM
  • edited July 2003
    That worked, Thanks,

    Rodger

This discussion has been closed.