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

Event that fires once per record

edited April 2002 in General
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.

Comments

This discussion has been closed.