|
-
Feb 10th, 2008, 02:24 AM
#1
Thread Starter
Hyperactive Member
Parameter problem with subreport
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))
...
-
Feb 10th, 2008, 11:40 PM
#2
Re: Parameter problem with subreport
If Crystal is prompting for the parameter value of the subreport then the linking between the main and subreport is incorrect.
-
Feb 11th, 2008, 11:29 AM
#3
Thread Starter
Hyperactive Member
Re: Parameter problem with subreport
The code and report should be correct because they are just upgrade from an old version.
-
Feb 12th, 2008, 12:17 AM
#4
Addicted Member
Re: Parameter problem with subreport
I think there is a problem in linking of the main report and sub report.
Thanks and Regards,
Muhammad Abbas
-
Feb 12th, 2008, 11:17 AM
#5
Thread Starter
Hyperactive Member
Re: Parameter problem with subreport
After I change to use Dataset instead of Recordset, the problem gone..........
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|