could someone provide me a sample on how to create subreports at runtime where it all the subreports are assigned to a separate RTM file depending on number of files being specified. I'm currently using Delphi 5(ent) & Reportbuilder (Ent 7.0)
Once you create a valid subreport, a Child Report object exists for that subreport. If you would like to create another subreport/child report inside an already existing subreport or one you create at runtime, you will need to use the same method used in the example I sent in the earlier post.
You can load a template into a subreport by calling the following:
Comments
Also, check out the following example of creating a subreport completely in
code...
http://www.digital-metaphors.com/tips/DynamicSubReportCreation.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
to load the custom RTM file into it. How do i do that?
Once you create a valid subreport, a Child Report object exists for that
subreport. If you would like to create another subreport/child report
inside an already existing subreport or one you create at runtime, you will
need to use the same method used in the example I sent in the earlier post.
You can load a template into a subreport by calling the following:
Subreport.Report.Template.FileName := 'myReport.rtm';
Subreport.Report.Template.LoadFromFile;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com