active report
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com