cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

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:

Troubleshooting Issues with VS .NET Datasets and Crystal Reports - Business Intelligence (BusinessOb...

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Answers (0)