I'm developing reports for use in an aspx environment using Visual Studio 2010 and CR 13.
I have a main report and a subreport. Each report is linked to the database with a view that is connected to a dataset.
When I place the subreport in the main report I edit the change links option and select identical fields from each report.
When I run the code with the subreport commented out I get what I expect on the page.
When I uncomment the subreport I get "Missing parameter values"
Here's the code that I uncomment for the subreport. I've already checked to ensure that there is data in the dataset.
mySection = CaseAssignmentRpt.ReportDefinition.Sections("dsCaseOffender") | |
mySubObj = mySection.ReportObjects("srCaseOffender") | |
mySubRep = mySubObj.OpenSubreport(mySubObj.SubreportName) | |
mySubRep.SetDataSource(dsCaseAoffender) |
Do I need to do anything special to my dataset for the two fields to get linked?