|
-
Jan 9th, 2007, 09:56 AM
#1
Thread Starter
Lively Member
problems passing parameters
I am using Crystal Reports 10 and Visual Studio 2005 (vb.net). I have created a report and need to pass it parameters. Below is the code I am using. On the line ParamField = ParamFields("Department"), I am getting the error System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
If I don't try and sent parameters the report load fine. Does anyone know what could cause this?
Dim ParamValue As New ParameterDiscreteValue
Dim ParamFields As CrystalDecisions.Shared.ParameterFields
Dim ParamField As CrystalDecisions.Shared.ParameterField
ParamFields = CrystalReportViewer1.ParameterFieldInfo
ParamField = ParamFields("Department")
ParamValue.Value = hospital.SelectedValue
ParamField.CurrentValues.Add(ParamValue)
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
|