Assigning data
Hello everyone,
I have a question about assigning data to a label. If I have two
reports and trying to using only one TppReport. The problem is that I
have code for one report assigning data to a label on the BeforePrint
event on the ppHeaderBand. The program crashes if I don't have a label
on the second record with the same name. I do allot of this assigning
data type of recording. Is there away around this?
Thanks..........Brian
I have a question about assigning data to a label. If I have two
reports and trying to using only one TppReport. The problem is that I
have code for one report assigning data to a label on the BeforePrint
event on the ppHeaderBand. The program crashes if I don't have a label
on the second record with the same name. I do allot of this assigning
data type of recording. Is there away around this?
Thanks..........Brian
This discussion has been closed.
Comments
It looks as though when you load your second report, the event handlers from
the first one are staying connected and when the event fires for a label
that exists on the first report and not on the second, the program crashes.
You will either need to disconnect this event handler once you load the
second report or move all your event handlers to your templates using RAP.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for the help. Is there a demo or example on this RAP?
Thanks..........Brian
RAP (Report Application Pascal) comes with ReportBuilder Enterprise edition.
You can try downloading a trial version of RB 7.03 Enterprise and run
through some of the RAP turorials and demos to see if this is a good
solution for your needs.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com