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

Can you detect what band you are printing

edited February 2004 in General
Hi,

Is there a way to tell if I am printing the summary band
from inside the OnStartPage event? I have code in
the OnStartPage to set the Bin and I would like to be
able to set the bin if we are printing the summary page
(new page of the summary is set to true)

I have tried to set the bin in the BeforePrint of the
summary but this causes the page before the summary
to go to that bin too

Thanks,
Joseph Gordon

Comments

  • edited February 2004
    Hi Joseph,

    The easiest way to accomplish this would be to place a section style
    subreport inside the summary band, with its printer settings set to print to
    a different bin. If this will not work, you can check which band you are
    currently generating by using the Report.Engine.CurrentBand property.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Hi,

    I had tried the CurrentBand but inside the OnStartPage it was alway nil.
    I have gotten something to work. I put a BeforePrint hooked to the summary
    band. In that event I store off the Absolute page number in a temporary
    value if it has not yet been set ( I preset this temporary value to 999999)
    and in the OnStartPage I check to see if the current absolute page is
    greater
    than the temporary value then I set its bin otherwise I set the otheres.

    I will try the printer settings since this seems simpler.

    Thanks,
    Joseph Gordon

This discussion has been closed.