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

Create Subreports at Runtime

edited June 2003 in General
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)

Comments

  • edited June 2003
    perhaps in folder ..\RBuilder\Demos\3. EndUser\5. Dynamic Subreport Loading


  • edited June 2003
    Hello,

    Also, check out the following example of creating a subreport completely in
    code...

    http://www.digital-metaphors.com/tips/DynamicSubReportCreation.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2003
    but i want to create a ChildReprt inside a Subreport so that i would be able
    to load the custom RTM file into it. How do i do that?

  • edited June 2003
    Nagen,

    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;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2003
    thankx
This discussion has been closed.