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

How open other report inside a report (like a link)?

edited November 2007 in General
Hello,

I want to open a new report when I pressed a link inside a report already
opened. But this new report must be open in the same viewer of the report 1.

I saw in the demo of Report Builder one example almost like I want, the
unique problem is because in the demo, the new report is open in a new
tabsheet, and not in the same viewer. (Demo 153)

I tried to implement this in the report 1:

procedure TForm1.ppLabel1DrawCommandClick(Sender, aDrawCommand: TObject);
begin
ppReport1.Template.FileName := 'test2.rtm';
ppReport1.Template.Load;
ppReport1.Print;
end;

But don't working.

Any help??

Regards,
Priscila Lugon

Comments

  • edited November 2007
    Hi Priscila,

    The demo you are speaking of is not loading complete reports into a new
    tabsheet, these are subreports within the main report (similar to a drill
    down style report). ReportBuilder is not designed to load a completely new
    report from within another report into the same preview window.

    One option would be to open a new preview form and view the new report
    inside there. You could use the OnDrawCommandClick event to create the
    link. Another would be to create a report similar to example 153.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.