calvin-c
Oct 2nd, 2008, 01:05 PM
I know this sounds similar to a thread posted earlier, but the problem is different. In this case the subreport parameters are linked to fields in records selected by the main report. The report is designed in CR XI but run via a VB.Net program.
The problem is, the VB program checks the report for parameters, then loads the proper value per the parameter name. (We have a list of standard parameter names developers are supposed to use.) This report should take no parameters-and when we run it manually, it doesn't.
But when VB checks the report, it says it has 3 parameters which all come from the subreport. Naturally these aren't in our list of standard parameter names, nor should they be since the VB program shouldn't be supplying the parameter values anyway.
I see two possibilities: one is to stop the report from telling the VB program about the subreport parameters. (No reason why it should as it gets the values from the main report anyway, but it does & that's the problem.)
The other is to identify the parameters as coming from the subreport & ignore them. I *could* do this by adding the specific parameter names to our list, but I'd prefer a more generic method since we have not told developers they need to use names from our list in subreport parameters. We have no idea how wide-spread this problem could be as it turned up in a new version of the VB program.
Any ideas? Thanks.
The problem is, the VB program checks the report for parameters, then loads the proper value per the parameter name. (We have a list of standard parameter names developers are supposed to use.) This report should take no parameters-and when we run it manually, it doesn't.
But when VB checks the report, it says it has 3 parameters which all come from the subreport. Naturally these aren't in our list of standard parameter names, nor should they be since the VB program shouldn't be supplying the parameter values anyway.
I see two possibilities: one is to stop the report from telling the VB program about the subreport parameters. (No reason why it should as it gets the values from the main report anyway, but it does & that's the problem.)
The other is to identify the parameters as coming from the subreport & ignore them. I *could* do this by adding the specific parameter names to our list, but I'd prefer a more generic method since we have not told developers they need to use names from our list in subreport parameters. We have no idea how wide-spread this problem could be as it turned up in a new version of the VB program.
Any ideas? Thanks.