Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Parameters - CR XI 2

Status
Not open for further replies.

Crystalyzer

Technical User
Mar 28, 2003
218
I am using CR XI and VB.Net with the viewer embedded in a form and the report object loaded based on the user's selection of a menu item. 98% of the time the users want the default values when they run the report.

Is it possible to upon opening a report to have the default values accepted automatically (ie no prompt for parameters at all to the user), however upon a refresh, the user would be prompted?

Thanks in advance for any assitance.


Thanks and best regards,
-Lloyd
 
Ido, thanks for responding. I guess I wasn't clear as is usually the case. The parameters HAVE default values set already. The issue is that the users accept those values 98% of the time and find it bothersome to have to hit the ok button to do this, HOWEVER, being the spoiled brats that they are, they STILL want the flexibility to refresh the report and change the parameter values so at that point they would like to be prompted for the values.

Clear as mud right?

Thanks and best regards,
-Lloyd
 
I think what Ido means is initially pass the paramater values to the report in your .NET code, and only prompt for parameter values on refresh.

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
Exactly. Parameter Value is not the same as Parameter Default Value.

Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Ok thanks for the direction ido and GJ, my next question, which I guess is best posed in the VB forum is how do I do that?

Thanks and best regards,
-Lloyd
 
Ido and GJ,

Thanks for pointing me in the right direction. I was able to do EXACTLY what I wanted by using "SetParameterValue" in VB.

thanks again!

Thanks and best regards,
-Lloyd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top