How to move images in an header band.
Hi.
(D2007 - RB10.09)
yes, yes i know it'easy....
But how can i set MAINREPORT.Header.image1.left:= xx from within a subreport
placed in the detail band? I don't have visibility of the header band placed in
the "main" report...
this is the structure
Report
|
--> header
|
-->Label1
-->Label2
-->Label..x
|
--> detail
|
--> subreport
|
--> onPrint (** here i must access Report.Header.Label1 **)
Note that i can't use "standard" event handlers because the report is loaded
from an rtm file. I searched alot in the docs and in this group but i didn't
find a way to solve..
Thanks in advance
Gianantonio
Italy
(D2007 - RB10.09)
yes, yes i know it'easy....
But how can i set MAINREPORT.Header.image1.left:= xx from within a subreport
placed in the detail band? I don't have visibility of the header band placed in
the "main" report...
this is the structure
Report
|
--> header
|
-->Label1
-->Label2
-->Label..x
|
--> detail
|
--> subreport
|
--> onPrint (** here i must access Report.Header.Label1 **)
Note that i can't use "standard" event handlers because the report is loaded
from an rtm file. I searched alot in the docs and in this group but i didn't
find a way to solve..
Thanks in advance
Gianantonio
Italy
This discussion has been closed.
Comments
To access a component in the main report from a subreport in RAP, you need
to set up a global reference to that object in the OnGlobalCreate event.
This is similar to the way calculations are made in the main report from a
subreport. See the following article (sample RAP code) on how this should
be done for a TppVariable. The same concepts apply.
http://www.digital-metaphors.com/rbWiki/Delphi_Code/Calculations/How_To...Display_Subreport_Totals_in_the_Main_Report
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com