Store 'OnPrint' event code in template?
Hi guys,
I've read tech-tips on templates, I've read the manual, and I've read couple
of topics here, but it looks like I am missing something.
I want to have a report where some components have code for their 'OnPrint'
event. This code would reference that component by the name (like: if AMOUNT
< 0 then ppLABEL1.FONT.COLOR := clRed ...).
Is it possible to save this 'OnPrint' code with the template? If so, can
someone point me in the right direction? (Some example code would be nice.)
Thanks.
Zoran.
I've read tech-tips on templates, I've read the manual, and I've read couple
of topics here, but it looks like I am missing something.
I want to have a report where some components have code for their 'OnPrint'
event. This code would reference that component by the name (like: if AMOUNT
< 0 then ppLABEL1.FONT.COLOR := clRed ...).
Is it possible to save this 'OnPrint' code with the template? If so, can
someone point me in the right direction? (Some example code would be nice.)
Thanks.
Zoran.
This discussion has been closed.
Comments
couple
'OnPrint'
AMOUNT
nice.)
Yes, use RAP, which you need the Enterprise version to have. That is what
RAP is all about.
Thanks for the answer.
Enterprise.
www.digital-metaphors.com
If you use RAP, and change an event handler for one of your customer's
reports, then you only need to update their template. If you change the
event handler, which was written in Delphi, and not RAP, you are going to
need to update their executable.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com