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

TppDetailBand BandsPerRecordCount OnChange event available?

edited August 2006 in General
Hi,

We use TppDetailBand.BandsPerRecord to handle multiple copies of pbSection
subreports. It works ok but now I have a TppArchiveDevice linked to the
report that streams the printout to the database. Trouble is now when
TppDetailBand.BandsPerRecord > 1: fi 2 the original + the copy is streamed
too to the database which i don't want. I suppose the
TppDetailBand.BandsPerRecordCount propertie goes from 1 to
TppDetailBand.BandsPerRecord. Is there any event available that gets
triggered when the BandsPerRecordCount changes so i can do a
TppArchiveDevice.EndJob and only stream the first copy from the subreport to
the database.

Greetings,
Filip Moons

Comments

  • edited August 2006
    Hi Filip,

    There is no specific event that fires as the BandsPerRecordCount is changes.
    A couple options you might try...

    Use the TppDetailBand.BeforePrint to check the BandsPerRecordCount and if it
    is greater than one, stop the archive device.

    Before the report is printed to Archive, simply be sure the BandsPerRecord
    is set to 1.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.