Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Crystal Reports & Datagrid Post Reply Post New Topic
Author Message
KevinVGW
Newbie
Newbie


Joined: 15 Aug 2010
Online Status: Offline
Posts: 3
Quote KevinVGW Replybullet Topic: Crystal Reports & Datagrid
    Posted: 15 Aug 2010 at 9:48am
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
IP IP Logged
KevinVGW
Newbie
Newbie


Joined: 15 Aug 2010
Online Status: Offline
Posts: 3
Quote KevinVGW Replybullet Posted: 15 Aug 2010 at 9:32pm
Nobody ?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.