In my example I was populating a temporary file and my report didn’t have any parameters. If you want to know how to populate the parameters, here’s how you do it:
crxReport.ParameterFields(1).SetCurrentValue("Houston Department")
In case you need it, use the following to get the type of parameter. It returns a number (here are the common ones—7=Number; 8=Currency; 9=Boolean; 10=Date; 11=Time; 12=String; 16=DateTime):
crxReport.ParameterFields(1).ValueType
To get the parameter prompt, use:
crxReport.ParameterFields(1).Prompt
And this is how you get the number (count) of parameters:
crxReport.ParameterFields.Count
>Per the example you posted to generate a crystal reports viewer with-in a screen useing the crviewer class, how do you pass parameters to the report thus preventing the user from being prompted for the parameters?
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com(941) 743-0108
(800) 246-5488