Create Declarations in Code
I dynamically create reports and also wish to create some RAP functions
dynamically. I have seen the sample using raGetCodeModule(report)
unfortunately upon implementing this it is returning a big fat nil to me.
Closer invetigation shows that the CodeModule property, available only
through the run time inspector is also set to nil on my object, yet not on
the sample you have provided. My guess is that I will have to initialise the
CodeNodule in some way, but how exactly. Also I notice at the end of the
sample provided the referenced code module is reassigned to the report using
lCodeModule.GlobalCreateProgram := lGlobalCreateProgram;
I however am using the
CreateEventHandler() method, so how do i reassign my code module once fully
created.
Also is there any further documentation on the objects provided for RAP as
this information is scarcely touched upon in the help files.
--
Regards
Conrad Rowlands
Callards Technology Ltd
dynamically. I have seen the sample using raGetCodeModule(report)
unfortunately upon implementing this it is returning a big fat nil to me.
Closer invetigation shows that the CodeModule property, available only
through the run time inspector is also set to nil on my object, yet not on
the sample you have provided. My guess is that I will have to initialise the
CodeNodule in some way, but how exactly. Also I notice at the end of the
sample provided the referenced code module is reassigned to the report using
lCodeModule.GlobalCreateProgram := lGlobalCreateProgram;
I however am using the
CreateEventHandler() method, so how do i reassign my code module once fully
created.
Also is there any further documentation on the objects provided for RAP as
this information is scarcely touched upon in the help files.
--
Regards
Conrad Rowlands
Callards Technology Ltd
This discussion has been closed.
Comments
no documentation on using this objects at runtime. We have created a few
'tips' to configure the RAP code/variables/event handlers for a report.
Theses should help you get started:
http://www.digital-metaphors.com/tips/RAPModifyPrograms.zip
http://www.digital-metaphors.com/tips/RAPCreateGlobalProc.zip
http://www.digital-metaphors.com/tips/RAPCreateGlobalVar.zip
http://www.digital-metaphors.com/tips/MoveGroupHeaderBeforePrint.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com