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

active report

edited July 2004 in General
i have several reports (each with subreports) that have common fields.
i want to share event handling across the reports to handle these common
fields. how can i now which is the 'activereport' to access its
datapipeline to retrieve additional fields for the formatting? is there
something in the (Sender: TObject) parameter that can be used? also if
i do know the main report (which is not always the case) i attempt to
use 'activereport.datapipeline' but that appears to return only a string
not the pipeline object itself.

thanks
-martha

Comments

  • edited July 2004
    Hi Martha,

    In my testing Report.ActiveReport.DataPipeline seemed to return the
    datapipeline correctly. If you look in the TppReport class located in the
    ppReport.pas file, you will see that the ActiveReport property is a public
    property and is a TppCustomReport type. If you then take a look inside the
    ppClass.pas file at the TppCustomReport class, you will see that the
    DataPipeline Property is a TppDataPipeline class type. Just to be sure I
    set up a small example that accessed the
    ppReport1.ActiveReport.DataPipeline[] property fromt the
    DetailBand.BeforePrint event inside a subreport and everything seemed to
    work correctly.

    --
    Best Regards,

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