on 07-14-2009 9:09 PM
Hi there,
I have created a report with 7 parameters. I have via code-behind passed the values I require to the report using the SetParameterValue option. If I insert a break point just before I refresh the report I can see that the report has all 7 values set and hascurrentvalue is equal to yes. When I refresh the report it still prompts for all 7 parameters. Order of code as follows:
1. create new ReportDocument
2. load report using Server.MapPath
3. set parameters
4. set RecordSelectionFormula
5. set report source to 1
6. refresh report
Not usre what I am doing wrong
Any help would be appreciated.
Thanks,
Garth.
You are going to want to set CrystalReportViewer.ReuseParameterValuesOnRefresh to true if you don't want to be prompted for parameters values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Garth;
What version of Crystal Reports and .NET are you using?
If you do not do step 6, the refresh of the report, does it work any better?
Regards,
Jonathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Garth;
Try installing SP1 for Crystal Reports for .NET 2008
https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
Regards,
Jonathan
Did you find a solution to this problem? I am having a similar issue. I am using a stored procedure in my report and setting the parameter value in VB.Net. The HasCurrentValue parameter returns True after I set the parameter value, but I still receive a prompt for a parameter. I would like to disable the prompting somehow.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.