vb6 with crystal report 8.5
-
Is it possible to sent two parameters to the same field in Crystal Report? I have sent a parameter to a field in the report. Now I want to send the other one to the same field, but it replaces the first one. What I want is to send many parameters to show on the report. Is it possible to do that?
-
Is it possible to sent two parameters to the same field in Crystal Report? I have sent a parameter to a field in the report. Now I want to send the other one to the same field, but it replaces the first one. What I want is to send many parameters to show on the report. Is it possible to do that?
In the crystal report designer when you are creating a new parameter possibly there is a CheckBox which says
"Allow Multiple Values"
.Did u check that??Tirtha Do not go where the path may lead, go instead where there is no path and leave a trail. Author: Ralph Waldo Emerson (1803-82), American writer, philosopher, poet, essayist
-
In the crystal report designer when you are creating a new parameter possibly there is a CheckBox which says
"Allow Multiple Values"
.Did u check that??Tirtha Do not go where the path may lead, go instead where there is no path and leave a trail. Author: Ralph Waldo Emerson (1803-82), American writer, philosopher, poet, essayist
Yes, I already checked it. When I sent the first parameter, I used this code: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("a") Now I want to send the second one with the same code above, it seems to replace the first one like here: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("b") The result is "b" Which I want a b Help me please.............
-
Yes, I already checked it. When I sent the first parameter, I used this code: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("a") Now I want to send the second one with the same code above, it seems to replace the first one like here: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("b") The result is "b" Which I want a b Help me please.............
I don't use CR, but it would seem that you have to send the "a" and "b" parameters as an array. I have no idea if this will work or do what you want, but this is what I would try:
rpt.ParametersFields.GetItemByName("text").AddCurrentValue(New String() {"a", "b"})
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007