Event that fires once per record
I'm doing the usual sort of mail-merge, with a RichText component in a
stretchable detail band in a TppReport that has a data pipeline. The
RichText contains a letter, which may be more than 1 page. I need to log
the generation of each letter. I'm having trouble finding an event that
fires once per letter or once per record, rather than once per page.
I've tried the detail band's AfterGenerate event, and the RichText's
OnDrawCommandCreate event, but these seem to fire once per page.
I could try the TppDBPipeline's OnNext event. But that's unattractive since
it's not clear what state the RichText is in when that event fires, and it
may fire once more than there are records being reported on, when it reaches
EOF.
I suppose I could use one of the events that fires more than once, and
figure out whether the current record has changed. But RBuilder must
already know that somewhere.
Any suggestions?
Mike Carroll
Sigma Data Systems, Inc.
stretchable detail band in a TppReport that has a data pipeline. The
RichText contains a letter, which may be more than 1 page. I need to log
the generation of each letter. I'm having trouble finding an event that
fires once per letter or once per record, rather than once per page.
I've tried the detail band's AfterGenerate event, and the RichText's
OnDrawCommandCreate event, but these seem to fire once per page.
I could try the TppDBPipeline's OnNext event. But that's unattractive since
it's not clear what state the RichText is in when that event fires, and it
may fire once more than there are records being reported on, when it reaches
EOF.
I suppose I could use one of the events that fires more than once, and
figure out whether the current record has changed. But RBuilder must
already know that somewhere.
Any suggestions?
Mike Carroll
Sigma Data Systems, Inc.
This discussion has been closed.
Comments
property to decide whether to log the event. See this sample demo as an
example:
http://digital-metaphors.com/tips/LoggingMultipageMemos.zip
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com