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

Compiling RAP methods

edited May 2004 in RAP
Hi,

I've recently inherited a problem we're having with ReportBuilder reports.
It seems that the RAP methods for events embedded in the report are not
staying compiled. I can compile them fine, but when I go to the preview tab,
the code has not taken affect, and when I return to the Calc tab, the
methods are not compiled anymore. What I'm doing is fairly simple, just a
variable where I concatinate two fields together. I've tried displaying
straight text and the ShowMessage procedure, and neither appear, so it is
obviously never getting to the event method in the first place. I'm using
template files rather than report components in the Delphi application.

Can anyone point me in the right direction to look, please?

Comments

  • edited May 2004

    1. If you edit a report template, select File | Save to make sure that the
    template is saved.

    2. Try downloading a trial version of the latest release and perform the
    same test. I recall there was an issue in prior releases with event-handlers
    in subreports not being compiled automatically. (Backup up your existing
    installation and reports prior to installing the latest release. )


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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited May 2004
    Thanks. I was on 6.03, Delphi 6 (and also using ExtraDev), and I downloaded
    the 7.03 trial and that looks like it may have been it. It certainly seems
    to be working from the preview in the TppDesigner anyway. I can't print it
    out anymore though, because whenever I try the TppReport.Print function, it
    comes up with an EAbstractError exception. Which seems a bit strange.
    Without the source for 7.03 I can't track it down though, so I'll have to
    wait until the boss gets a copy.


  • edited May 2004
    Incase you're interested in what was causing the Abstract Error, it was
    because we have replaced ppPDlg unit with our own class, and it needed to be
    updated to work with the latest version. The background print settings in
    particular...

This discussion has been closed.