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

Store 'OnPrint' event code in template?

edited August 2001 in General
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.

Comments

  • edited August 2001
    > I've read tech-tips on templates, I've read the manual, and I've read
    couple
    'OnPrint'
    AMOUNT
    nice.)

    Yes, use RAP, which you need the Enterprise version to have. That is what
    RAP is all about.
  • edited August 2001
    I have Pro version, so I guess I'll be doing things the usual way.

    Thanks for the answer.

  • edited August 2001
    If you have ReportBuilder Professional, you can always upgrade to
    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


  • edited September 2001
    You've convinced me. I've upgraded to RB6Ent.


This discussion has been closed.