I have an application where we would like to combine several individual reports into one master report.
I created all six of the sub-reports, and they each have specific report header sections which describe the content.
When embedding these reports, I need to suppress the display of the report header.
I am thinking I can either make that section invisible by default, and then change to visible when the report runs all by itself.
Or the opposite, making the header invisible when I detect that the report is contained inside a parent report.
Question #1: is there a way within the sub-port code to determine if there is a "parent"?
Question #2: is there a way to access the sub-report header setting (visibility) from within the code of the master report?
As an example, in another thread I learned how to set properties in the main report. I am lacking in the knowledge of how to dig deeper into the content of the subreports. In effect, "....some kind of cast....some report property.....find something or other inside subreport1..."
Dim report As Telerik.Reporting.Report = DirectCast(Me.ReportViewer1.Report, Telerik.Reporting.Report)
Dim txt As Telerik.Reporting.HtmlTextBox = TryCast(report.Items.Find("filter_description", True)(0), Telerik.Reporting.HtmlTextBox)
txt.Value = HttpContext.Current.Session("grid_title")