Hi All,

I have a CRXI report which accept some parameters.
One of the parameter is used to link to a subreport.

I programatically set the parameter value, but when I preview the report, CR still popup a prompt for the parameter of the subreport, which should be the one linked to main report already.

How can I get rid of the prompt?
Thanks!


Code:
Dim RptApp As CRAXDRT.Application
Dim Rpt As CRAXDRT.Report
Rpt = RptApp.OpenReport("abc.rpt", CRAXDRT.CROpenReportMethod.crOpenReportByTempCopy)
...
Rpt.ParameterFields(2).AddCurrentValue((gstrID))
...