Link to bands in subreports
Hi everybody.
I'm designing a report with fastreport 4.0
We need to put some data from a table in a section of the report (in a frame at the right of the report). So, we're trying to use a subreport to encapsulate them into the frame (it doesn't take up the whole band). But we have a problem: we need to link the band in the subreport with the band of the main report (because the data are dependent of it).
How can we do it?
I attach an image to explain it (my English isn't so good).
I'm designing a report with fastreport 4.0
We need to put some data from a table in a section of the report (in a frame at the right of the report). So, we're trying to use a subreport to encapsulate them into the frame (it doesn't take up the whole band). But we have a problem: we need to link the band in the subreport with the band of the main report (because the data are dependent of it).
How can we do it?
I attach an image to explain it (my English isn't so good).
Comments
or add a detailband place subrep in detail
But the band taht contains the report isn't a Master one, but a Group Footer. Will be this a problem?
I'll try to explain you. The report we're trying to do is a group of bills (they can be of more than 1 client). For each client, we group all his sales and we show the total amount as the group footer.
Inside it (that group footer) we need to show the maturities of his bill, that are saved in a different table. To do it, I was trying to use a subreport, but I need tell to that subreport that it must filter the maturities by the bill that is refered by the group footer.
I don't know if I've explained it clearly
bands are merely place holders on a design page and they tell the engine where/when to start outputing the data contained in objects within the band and they are ordered by band type.
data linking depends upon how the datasets are connected.
the datsource property of data bands basicly just controls the number of times the band is output.
when working with group footers you may already be past the masterdata for the current group condition record(that's why you are printing the groupfooter.