Show sub-report in group footer of main report

Stimulsoft Reports.NET discussion
Post Reply
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Show sub-report in group footer of main report

Post by robinpearce »

Hello,

Sorry to trouble you again but I have another question.

I have a report with 2 datasources - call them Employees and Expenses. Both datasources contain a Department column and I have linked the 2 datasources on Department. The requirement is to group the employees by department. i.e show a department header, a list of employees in that department, and then in the department footer list all the expenses for that department.

I have tried creating a sub-deport for the expenses but cannot get it to work. I need to put the subreport in the emplyees footer but when I do that I cannot select the Master Component from within the sub-report. Perhaps I should not be using a sub-report.

Have you any ideas how I can achieve this ?

Best regards
Robin
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Show sub-report in group footer of main report

Post by Edward »

Hi Robin,

Yes, you are right, it is impossible with a subreport. Please place in the Group Footer Band a Container and then place a DataBand inside of this container. This must work as you expected.

Thank you.
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Show sub-report in group footer of main report

Post by robinpearce »

Thank you so much - I didn't realise all I needed was a container in order to be able to place a databand in a footer. It now works perfect - thanks again.
Post Reply