Hi all,
I'm making an application to print out all the data that is in my datagridview.
Now, i'm using this code to pass my variable to the report:
Dim paramFields As New ParameterFields()
Dim paramField As New ParameterField()
Dim discreteVal As New ParameterDiscreteValue()
paramField = New ParameterField
paramField.ParameterFieldName = "ArtikelDescription"
For i As Integer = 0 To dgArtikelen.RowCount - 2
discreteVal = New ParameterDiscreteValue()
discreteVal.Value = dgArtikelen.Rows(i).Cells(2).Value
paramField.CurrentValues.Add(discreteVal)
Next
paramFields.Add(paramField)
CrystalReportViewer1.ParameterFieldInfo = paramFields
CrystalReportViewer1.ReportSource = "C:\Report.rpt"
CrystalReportViewer1.Refresh()
The problem is: only the first row of the datagridview will be displayed..
Please, help me to show all my rows from my datagrid in my report..
Edited by KevinVGW - 15 Aug 2010 at 9:49am