G
Guest
The following is the code I use to populate a Crystal Report using a dataset. The problem is that I see the report in the viewer but the report doesn't have any data values in the associated fields. As you can see I used a debug.write statement to check for data in the dataset and it shows that there is data. I also did a debug.write on the databinding count on the viewer and it shows 0. The documentation for binding a report in a windows form viewer only shows setting the ReportSource property to establish binding. Is this correct or am I missing something
Public Sub GenerateReport(
If dsSCR Is Nothing The
Exit Su
End I
SCRReport = New rptSC
SCRReport.SetDataSource(dsSCR
Debug.WriteLine("SCR Number is " & dsSCR.Tables(0).Rows(0).Item(0)
CRViewer.ReportSource = SCRRepor
Debug.WriteLine("Bindings " & CRViewer.DataBindings.Count.ToString
End Su
Public Sub GenerateReport(
If dsSCR Is Nothing The
Exit Su
End I
SCRReport = New rptSC
SCRReport.SetDataSource(dsSCR
Debug.WriteLine("SCR Number is " & dsSCR.Tables(0).Rows(0).Item(0)
CRViewer.ReportSource = SCRRepor
Debug.WriteLine("Bindings " & CRViewer.DataBindings.Count.ToString
End Su