on 08-31-2014 9:08 PM
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?
Hi Chris
Nothing special needed - just making sure that the data is exactly what the report and subreport expect. It is quite typical for this issue to come up if the dataset contains date that is not as expected (e.g.; field formats (including nulls / spaces, etc, missing fields, and so on).
See if following the dataset troubleshooting wiki will help:
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.