crisedefoie
Programmer
HI
I have an vb6 application using crystal 10 reports.
When I want to send parameters to my reports, it doesn't work. I see the parameter prompt windows.
However, my debugger tells me that the value was good.
These is a part of my code :
Select Case pParamDef.ValueType
Case 9 'boolean
pParamDef.SetCurrentValue CBool(psValue)
Case 10 'Date
pParamDef.SetCurrentValue CDate(psValue)
Case 1, 2, 3, 4, 5, 6
pParamDef.SetCurrentValue CInt(psValue)
Case 7 'Numeric
pParamDef.SetCurrentValue Val(psValue)
Case Else 'String
pParamDef.SetCurrentValue psValue
End Select
In the 'Immediate' windows of VB I see :
? pParamDef.GetNthCurrentValue(1)
TheRightValue
? pParamDef.IsCurrentValueSet
True
But these parameters didn't go to my reports.
Does someone know why it always doesn't work and how to solve it?
Thank you
I have an vb6 application using crystal 10 reports.
When I want to send parameters to my reports, it doesn't work. I see the parameter prompt windows.
However, my debugger tells me that the value was good.
These is a part of my code :
Select Case pParamDef.ValueType
Case 9 'boolean
pParamDef.SetCurrentValue CBool(psValue)
Case 10 'Date
pParamDef.SetCurrentValue CDate(psValue)
Case 1, 2, 3, 4, 5, 6
pParamDef.SetCurrentValue CInt(psValue)
Case 7 'Numeric
pParamDef.SetCurrentValue Val(psValue)
Case Else 'String
pParamDef.SetCurrentValue psValue
End Select
In the 'Immediate' windows of VB I see :
? pParamDef.GetNthCurrentValue(1)
TheRightValue
? pParamDef.IsCurrentValueSet
True
But these parameters didn't go to my reports.
Does someone know why it always doesn't work and how to solve it?
Thank you