Hello,
I am using Using Crystal Reports 2008 and I have a report that runs off a list of people. It is grouped by person and the group header displays the person's name.
The group has two details sections each containing a subreport that may or may not return items for a given person. The main report does not know whether the subreports will or will not return anything.
The database has a lot of people in it that at some point will all have data to be displayed by the subreports but there will always be a significant number of people with nothing to display and the report must not show them at all.
So, I want to suppress display of the group for a person when the subreports are empty: if the subreports return nothing then the group in the main report for that person should not show at all.
I can't rely on data in the main report to decide whether to show or hide a group; it has to be based on the outcome of running the subreports.
I have successfully hidden the subreports when empty and I am now just left with the header: I have used the "suppress blank subreport" option in the subreport "format editor" and the "suppress blank section" in the details section editor.
Currently my report shows a group header for all users (some without details sections beneath). How do I suppress the group headers when the the details sections have been suppressed because they are empty ?
Can this be done with Crystal Reports?
It has been suggested that a shared variable could be used to control header suppression but such a variable would be set by the subreport after the header, which is too late to control display of the header. So, I am hopeful for other suggestions...
Any help much appreciated.
Thanks.
I am using Using Crystal Reports 2008 and I have a report that runs off a list of people. It is grouped by person and the group header displays the person's name.
The group has two details sections each containing a subreport that may or may not return items for a given person. The main report does not know whether the subreports will or will not return anything.
The database has a lot of people in it that at some point will all have data to be displayed by the subreports but there will always be a significant number of people with nothing to display and the report must not show them at all.
So, I want to suppress display of the group for a person when the subreports are empty: if the subreports return nothing then the group in the main report for that person should not show at all.
I can't rely on data in the main report to decide whether to show or hide a group; it has to be based on the outcome of running the subreports.
I have successfully hidden the subreports when empty and I am now just left with the header: I have used the "suppress blank subreport" option in the subreport "format editor" and the "suppress blank section" in the details section editor.
Currently my report shows a group header for all users (some without details sections beneath). How do I suppress the group headers when the the details sections have been suppressed because they are empty ?
Can this be done with Crystal Reports?
It has been suggested that a shared variable could be used to control header suppression but such a variable would be set by the subreport after the header, which is too late to control display of the header. So, I am hopeful for other suggestions...
Any help much appreciated.
Thanks.