I have 2 subreports in my Details section. From those subreports, I'm collecting a value (sum), which is then shown in Group footer. I use shared variables.
Sometimes there are no records to display in Details-section. In that case, in would be nice to hide Group header and footer. I have no problems with hiding the footer, but can't find the way to hide the header, because in the given moment my shared var sum1 still has the sum-value of the previous group. After that, in Group header I have an initialisation formula, and then the subreports are processed. By the time I get the right sum, my Group header is already displayed. Or not?
Sometimes there are no records to display in Details-section. In that case, in would be nice to hide Group header and footer. I have no problems with hiding the footer, but can't find the way to hide the header, because in the given moment my shared var sum1 still has the sum-value of the previous group. After that, in Group header I have an initialisation formula, and then the subreports are processed. By the time I get the right sum, my Group header is already displayed. Or not?