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

Modifying report templates on the fly

edited August 2002 in General
Further to Alexander Kramnik's advice at end of June,
I have now got around to developing a procedure which reads the template
into a TStringStream, substitutes whatever it nees to then saves the
template back in binary.

I have tried to connect this to an event that fires when ppReport loads the
template (either from file or database) but have not been very sucessful.

I found (somehow!) a ppReport.OnLoadTemplate event but this didn't seem to
fire.

I have now linked my procedure to ppDesigner.OnCustomOpenDoc which the
documentation suggests 'provides full control over the report loading
process'...

If I choose a report in Report Explorer and select the Design option, the
template loads from the database without firing the event. If I then load
the templae from file, it DOES fire the event.

Can you point me in the direction of an event that fires on both loading
from database AND from file?

Thanks in advance...

Comments

This discussion has been closed.