I have a number of reports that are being called from C#. Many of the reports have subreports. For subreports that appear at the end of the report, in the footer for example, I have no issues. I create parameters in the main report, and link them to the subreport, and it works fine.
I have now run into a situation where the subreport is part of a group footer. I need to link this subreport based on one of the fields in my dataset, RecKey. When I do this, a parameter called "?PM-ibinvoice.reckey" is created (ibInvoice is the name of the dataset). It looks a little different than the others, which I assume is because it is being used to filter the data in the subreport.
So far, so good. I believe this is the right way to do this. However, when I attempt to export the report, I get "Missing Parameter Values".
I've done enough experimenting to know for certain that the "PM" parameter is the one that is missing. Even if it were possible to set a parameter on a subreport, which it isn't, that wouldn't be correct. The subreport data needs to be filtered on the reckey.
This seems like a fairly common case, so I must just be missing something. Any ideas would be appreciated.
Thanks,
Geoff Callaghan