How To Use OnPrint Events

edited February 2010 in General
I've upgraded from v7.x to v10.09 and how things are handled in the events
seems to be completely different. In version 7, the OnPrint event was
handled within the code of my program. In version 10, this event is handled
inside the report itself. What I don't understand is that after I create
the event for a control, how do I fill it with information that I want it to
show. Do I have to create a DataPipeline for everything in order to see it
within the report? How do I locate a information that exists in another
table? I used to use Table.Locate(), but that doesn't seem to be acceptable
within the report coding.



  • edited February 2010
    Hi Jeff,

    Nothing has changed as far as event implementation since ReportBuilder 7.
    Did you perhaps upgrade your edition to Enterprise or Server?

    ReportBuilder Enterprise or Server, include the RAP feature
    ( which allows the user or
    creator of reports to create their own event handlers and code inside the
    report design and save it with the report template.

    The use of RAP is purely optional. You can still implement the OnPrint
    event in Delphi by simply using the Delphi object inspector.

    If you would like to keep using RAP to code your events associated with a
    report, you can and the events will fire the same as they would in Delphi.
    RAP however does not have access to objects outside the report. If you
    would like to access a Table, you will need to create a pass-thru function.
    See the RAP demos located in the \RBuilder\Demos\0. RAP\.. directory for


    Nico Cizik
    Digital Metaphors

    Best Regards,

    Nico Cizik
    Digital Metaphors
  • edited February 2010
    Thanks Nico,
    Yes I did get upgraded to Enterprise and hadn't dealt with RAP before. Now
    that I know what it is, I know what I'm going to do today.


This discussion has been closed.