Parent Group and subreport in Crystal Reports
Posted on 2010-08-12
I found the description of the task I am trying to complete in Crystal Report when googling. And it is described like this:
-hire car header
--rentals header (group)
---rental from 01-02-2008 to 01-06-2008
---rental from 01-08-2008 to 01-09-2008
---rental from 01-12-2008 to 01-15-2008
--repairs header (group)
---repair from 02-02-2008 to 02-05-2009
-hire car footer
hire car is the normal report and rentals and repairs are the groups. the groups are not nested. My current problem is that i cnat really create something like that and i cant change the structure to solve this problem...
Below is the 2 solutions suggested:
1.One solution would be to use two sub-reports for the rentals and repairs.
2.Another solution would be to union together the repairs and rentals. Then have crystal group on the column that specifies if the row is rental or repair data. You would also have to show/suppress the correct labels, fields, etc. This get's very clunky so your best bet is to go the sub-report route.
My question is:
Does the suggested solutions are the only 2 possibilities?
I am thrown to the task in the last moment. And I dont have days, just hours to reslove.
To the environment I am in I wish I could do something with the groupinngs, headers and footers rather then make 2 subreports, insert them in another suubreport that will subsequently be inserted into main subreport.