RAP in subreport
Hello all,
Delphi 2010; RB 12.02 Build 279
I am trying to get all plain text RAP code from a given report,
including the RAP code in subreports within the given report. I am
doing this to create a plain text "catalog" of my 600+ reports so that
when a field name or other significant item (such as a RAP pass-through
function) changes, I can search for all reports containing the item in
question. I have used the following article to get mostly there
(http://www.digital-metaphors.com:8080/RAP/Fundamentals/How_To...Modify_RAP_Programs_in_Code)
but this only seems to load the RAP code segments/programs from the main
report, disregarding those in any subreports contained within the main.
I am basically just saving the ascii version of the report template with
all RAP code segments appended to the end in a "template_search" field I
have created in the RB_Item table. This works except for the missing
subreport code...
--
Regards,
Branden Johnson
Integrity Software Design
Delphi 2010; RB 12.02 Build 279
I am trying to get all plain text RAP code from a given report,
including the RAP code in subreports within the given report. I am
doing this to create a plain text "catalog" of my 600+ reports so that
when a field name or other significant item (such as a RAP pass-through
function) changes, I can search for all reports containing the item in
question. I have used the following article to get mostly there
(http://www.digital-metaphors.com:8080/RAP/Fundamentals/How_To...Modify_RAP_Programs_in_Code)
but this only seems to load the RAP code segments/programs from the main
report, disregarding those in any subreports contained within the main.
I am basically just saving the ascii version of the report template with
all RAP code segments appended to the end in a "template_search" field I
have created in the RB_Item table. This works except for the missing
subreport code...
--
Regards,
Branden Johnson
Integrity Software Design
This discussion has been closed.
Comments
Each child report also contains its own code module. Try performing a
report object loop to discover any subreports in the main report and
send its TppSubreport.Report property into the raGetCodeModule routine.
Then preform the same steps on the subreports' codemodule as you did
with the main report.
http://www.digital-metaphors.com/rbWiki/Delphi_Code/Layouts/Report_Object_Loop
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com