Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Missing Parameter Values - I'm not using parameters linking to sub

$
0
0

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?


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>