link subreport to main report
samir
India
hi,
i have solved the nested group issue but now i am again stuck one more.
how can i link the subreport to main reports like in crystal reports cause when i put a subreport in the group footer of my report it shows nothing.
i need to pass a value to the subreport and filter the datarow from a data set for that value and print it on the report.
is there a way to do this, sorry i keep on comparing it with crystal reports cause that is what we are using currently.
Thanks.
i have solved the nested group issue but now i am again stuck one more.
how can i link the subreport to main reports like in crystal reports cause when i put a subreport in the group footer of my report it shows nothing.
i need to pass a value to the subreport and filter the datarow from a data set for that value and print it on the report.
is there a way to do this, sorry i keep on comparing it with crystal reports cause that is what we are using currently.
Thanks.
Comments
Please send your report file to tz@fast-report.com, I'll take a look at it. Also, if possible, send me the screenshot of what you want to achieve.
Samir,
I know what you are talking about. I used to use CR until I switched to FR.
With FR, it is not necessary to explicitly link data from the main report to the subreport. Subreports have access to all the data/variables in the main report.
Here is one of my working reports.
I have a report that has a subreprt in a group footer. In the subreport is a chart. The chart dataset is based on a field from the report band (actually the grouping field). The dataset for the graph calls a stored procedure and passes the field data from the group variable as a parameter. I'm using it as a parameter to a stored procedure but you could use the main report data directly in your sql, for an expression, subreport title, etc.
I hope this helps.
Bryan
i found out the solution actually it was the Filter Criteria i was looking for in the data band of the subreports where in i can filter out the data through a Group Selection it uses the same dataset as of the main one.
Thanks