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

Using ppVariable components in EU Reports

edited April 2009 in General
I am using Report Builder Pro 11.03.

I am writing my first application using the Report Explorer instead of
loading the templates from rtm files. Making progress. Now have a
report with a ppVariable component and I wish to calculate it's value in
a OnCalc event.

A OnCalc event has been defined for the component ppVariable1 but I
cannot save the report without having the OnCalc event for the variable
being unassigned.

Do I need RAP in order to define the OnCalc event for the variable? Is
there a way of calculating the value of the Variable?

Does this make any sense?

Richard Harding

Comments

  • edited April 2009
    Hi Richard,

    RAP definitely makes things much easier when using the report explorer and
    assigning event handlers.

    If you have created an event handler in Delphi code, you can assign it to a
    report being loaded using the Template.OnLoadEnd event, the same way you
    probably had to do it when you were loading template files. This however
    can get tricky as the amount of reports grow in your database that need
    event code.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2009



    I recommend using RAP to code the event-handlers.


    - What is RAP?

    RB Enterprise includes a run-time Pascal environment called RAP. RAP enables
    Developers and and end-users to code without Delphi. RAP code can be used to
    add calculations and event-handlers to reports.

    - Why use RAP?

    Reports coded with RAP are more portable than reports that require Delphi
    code.

    RAP code is stored as part of the report definition. (Delphi code which is
    compiled into the .exe). In other words, report definitions loaded from a
    database or report file can contain the RAP code required to run the report.

    - RAP provides more power to end-users.

    You can optionally include RAP in end-user reporting solutions so that
    end-users have the power to add code to reports they create. (End-users do
    not have Delphi)

    - RAP speeds development of reports

    RAP code does not require that you compile your Delphi project to see the
    results. This speeds up the design/preview process. (Typically while
    creating reports you want to make changes and preview the results, then make
    changes, preview again, etc).





    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2009
    Thank you Nard & Nico. I'll order the Enterprise version shortly.

    Richard Harding . . . .

This discussion has been closed.