SubreportHasData Property (Field)
Returns whether a subreport has data and suppresses rendering if it doesn't.
The code below uses script to hide sections with empty subreports: The code below uses script to hide a field containing an empty subreport and show another field instead:
rep.Sections.Detail.OnFormat = "Detail.Visible = fSubreport.SubreportHasData"
rep.Sections.Detail.OnFormat =
"hasData = fSubreport.SubreportHasData\r\n" +
"fSubreport.Visible = hasData" +
"fNoData.Visible = Not hasData\r\n" +