....... that nobody knows the answer.
I can't imagine that I am the only one that uses parameters in CR.
So, my question again:
I have the following problem.
(VB.NET 2003 with CR)
I have a report with a multiple-value discrete value and a rangevalue.
The report shows fine in the viewer, but when I hit the export to pdf
button, it only uses one of two discrete values.
This is the code:
Dim BeginPeriode As String
Dim EindPeriode As String
BeginPeriode = Request.QuerySt ring("BeginPeri ode")
EindPeriode = Request.QuerySt ring("EindPerio de")
Dim myReport As New RapportAIRCOSto ringen
Dim paramFields As New ParameterFields
Dim paramField As New ParameterField
Dim discreteVal As New ParameterDiscre teValue
Dim rangeVal As New ParameterRangeV alue
paramField.Para meterFieldName = "FiliaalKeu ze"
discreteVal.Val ue = "2044"
paramField.Curr entValues.Add(d iscreteVal)
discreteVal = New ParameterDiscre teValue
discreteVal.Val ue = "2344"
paramField.Curr entValues.Add(d iscreteVal)
paramFields.Add (paramField)
paramField = New ParameterField
paramField.Para meterFieldName = "Periode"
rangeVal.StartV alue = BeginPeriode
rangeVal.EndVal ue = EindPeriode
paramField.Curr entValues.Add(r angeVal)
paramFields.Add (paramField)
crViewer.Parame terFieldInfo = paramFields
myReport.SetPar ameterValue("Pe riode", rangeVal)
myReport.SetPar ameterValue("Fi liaalKeuze", discreteVal)
crViewer.Report Source = myReport
As you can see I use myReport.SetPar ameterValue to feed the pdf.
It goes wrong with the discrete value. It only sees the second value I
entered and not the first.
How can I get this going?
Kind regards,
Alison
I can't imagine that I am the only one that uses parameters in CR.
So, my question again:
I have the following problem.
(VB.NET 2003 with CR)
I have a report with a multiple-value discrete value and a rangevalue.
The report shows fine in the viewer, but when I hit the export to pdf
button, it only uses one of two discrete values.
This is the code:
Dim BeginPeriode As String
Dim EindPeriode As String
BeginPeriode = Request.QuerySt ring("BeginPeri ode")
EindPeriode = Request.QuerySt ring("EindPerio de")
Dim myReport As New RapportAIRCOSto ringen
Dim paramFields As New ParameterFields
Dim paramField As New ParameterField
Dim discreteVal As New ParameterDiscre teValue
Dim rangeVal As New ParameterRangeV alue
paramField.Para meterFieldName = "FiliaalKeu ze"
discreteVal.Val ue = "2044"
paramField.Curr entValues.Add(d iscreteVal)
discreteVal = New ParameterDiscre teValue
discreteVal.Val ue = "2344"
paramField.Curr entValues.Add(d iscreteVal)
paramFields.Add (paramField)
paramField = New ParameterField
paramField.Para meterFieldName = "Periode"
rangeVal.StartV alue = BeginPeriode
rangeVal.EndVal ue = EindPeriode
paramField.Curr entValues.Add(r angeVal)
paramFields.Add (paramField)
crViewer.Parame terFieldInfo = paramFields
myReport.SetPar ameterValue("Pe riode", rangeVal)
myReport.SetPar ameterValue("Fi liaalKeuze", discreteVal)
crViewer.Report Source = myReport
As you can see I use myReport.SetPar ameterValue to feed the pdf.
It goes wrong with the discrete value. It only sees the second value I
entered and not the first.
How can I get this going?
Kind regards,
Alison
Comment