Visual Basic - VB + Crystal Report

Life is soft - evento anual de software empresarial
 
Vista:

VB + Crystal Report

Publicado por Mariela (2 intervenciones) el 21/06/2007 20:26:14
Hola gente necesito ayuda please!!

Quiero hacer que un parámetro del crystal report tome múltiples valores. Para eso en el crsytal declaro un parámetro como para recibir múltiples valores.

Después desde el form del reporte hago algo como:

Dim ParamDefs As CRAXDRT.ParameterFieldDefinitions
Dim ParamFieldLocation As CRAXDRT.ParameterFieldDefinition

...

Set ParamDefs = Report.ParameterFields
For Each Param In ParamDefs
Select Case Param.ParameterFieldName
Case "Maquina"
Param.AddCurrentValue (Maquina)
Case "Fecha"
Param.AddCurrentValue (Fecha)
Case "Turno"
Param.AddCurrentValue (Turno)
Case "Descripcion"
For posicion = 0 To UBound(Resultado.Demoras)
If (Resultado.Demoras(posicion).IdDemora <> 0) Then
Param.ClearCurrentValueAndRange
Param.AddCurrentValue (Str(Resultado.Demoras(posicion).IdDemora))
End If
Next posicion
End Select
Next
....

Por favor si alguien sabe...

Mariela
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder