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

Event fired on each record

edited November 2005 in General
Hello,

I'm needing an event that be fired one time only at each record and
before the detailband is printed. In this event I will set the content
inside a TppRichView (similar to TppRichText).

I've tried the DetailBand.BeforePrint but it doesn't works because my
DetailBand sometimes trespasses the height of the page, and in these
cases the event is fired two times.

I've tried too the Pipeline.OnTraversal. It works when my dataset has 1
record, if it has 2 or more it's fired more times then the record number.

How to solve this?

Thanks a lot.

Mauro.

Comments

  • edited November 2005
    Hi Mauro,

    The only event in ReportBuilder that is guaranteed to only fire once per
    record is the TppVariable.OnCalc event. Try placing a TppVariable inside a
    band above the Detail Band set to calculate on Traversal. You can place a
    ShowMessage inside the OnCalc event to be sure it is firing before the
    detail band is created.

    --
    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.