We have a base report that includes several text boxes, such as report title, date range, etc. These boxes are set as protected in the base report, so that they can be modified in the derived instance.
In the derived reports we want to set the text values; the literal values (ie the report name) are no problem, but I can't understand how to set texbox values based on parameter values. For example, we're passing a start date and end date, and we'd like to display those dates on the report. How can I access the parameter values in code-behind? I've tried statements like;
Public Sub New()
txtReportTitle.Value = "Active Employees by Location"
txtSubtitle.Value = Me.ReportParameters("CompanyName").Value
...but this throws an invocation error. The assignment statements work properly when I use a literal value.