Home RAP

RAP event code compatible problem

edited November 2003 in RAP
Hi,

I defined a custom RAP event for my grid component, I have the following
test code for this RAP event:

procedure TableGrid1OnGetCellConfig(ARow: Integer; ACol: Integer; Cell:
TrbTableCell)
begin
if ACol = 1 then
begin
{ do nothing for testing }
end;
end;

I compile this RAP Code under Delphi 7 and ReportBuilder 7.01, so each
time when I load this report under ReportBuilder 7.01 without any problem.
but what happen is that it shows the error 'Invalid property value' each
time when I load this report under ReportBuilder 7.03, the only way I can
solve the problem is that Ignore the error and save the report once again
under ReportBuilder 7.03. It seems that this RAP code is not compatible
between different RB version. What am I doing wrong?


Thanks

William

Comments

  • edited November 2003

    You will need to recompile your grid component for RB 7.03, including the
    custom RAP event code. Build all of the .dcu's and then build the packages.
    Make sure that the design-time and run-time packages are installed into the
    appropariate locations.


    Cheers,

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2003
    Nard Moseley (Digital Metaphors) wrote:


    Hi, Nard

    Thanks. That is a problem if later on my customers update their RB
    version, they have to recompile all the RAP code of their reports again. I
    thought it might cause by the declaration of this event or the parameter
    Cell, a TraTableCellRTTI(TraPersistentRTTI). but actually they aren't. Why
    could that happen?


    Best Regards

    William
    http://members.rogers.com/planit
  • edited November 2003

    Any RB add-on components need to be compiled to support a specific RB
    version. No way to get around that requirement.




    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.