To Modify Parameter Fields at Runtime [Visual Basic] ' Declare variables needed to pass the parameters ' to the viewer control. Dim paramFields As New ParameterFields() Dim paramField As New ParameterField() Dim discreteVal As New ParameterDiscreteValue() Dim rangeVal As New ParameterRangeValue() ' The first parameter is a discrete parameter with multiple values. ' Set the name of the parameter field, this must match a ' parameter in the report. paramField.ParameterFieldName = "Customer Name" ' Set the first discrete value and pass it to the parameter discreteVal.Value = "AIC Childrens" paramField.CurrentValues.Add(discreteVal) ' Set the second discrete value and pass it to the parameter. ' The discreteVal variable is set to new so the previous settings ' will not be overwritten. discreteVal = New ParameterDiscreteValue() discreteVal.Value = "Aruba Sport" paramField.CurrentValues.Add(discreteVal) ' Add the parameter to the parameter fields collection. paramFields.Add(paramField) ' The second parameter is a range value. The paramField variable ' is set to new so the previous settings will not be overwritten. paramField = New ParameterField() ' Set the name of the parameter field, this must match a ' parameter in the report. paramField.ParameterFieldName = "Customer ID" ' Set the start and end values of the range and pass it to the 'parameter. rangeVal.StartValue = 42 rangeVal.EndValue = 72 paramField.CurrentValues.Add(rangeVal) ' Add the second parameter to the parameter fields collection. paramFields.Add(paramField) ' Set the parameter fields collection into the viewer control. crystalReportViewer1.ParameterFieldInfo = paramFields crystalReportViewer1.ReportSource = "c:\reports\my report.rpt"En Realidad todo el Codigo no me interesa me interesa la parte donde se envia el rango de valores.
' Set the start and end values of the range and pass it to the 'parameter. rangeVal.StartValue = 42 rangeVal.EndValue = 72 paramField.CurrentValues.Add(rangeVal)Bueno Mientras tanto seguire Intentando.