Click to See Complete Forum and Search --> : Binding DataSet to Crystal Report at Runtime in VB.NET


prakashkyadas
May 6th, 2006, 12:54 PM
Hello Everybody,

I have a got a very typical error in Binding DataSet to Crystal Report at Runtime in VB.NET for Windows Application.

My Code is as follows:

Dim Obj as new CrystalReport1
Obj.SetDataSource(Ds.Tables(0))
CrystalReportViewer1.ReportSource = Obj

The Problem is: The DataSet is having 4 Records but when we assign the DataSet to the Report at runtime as shown above it is displaying more than 4 records (randomly 15,25, etc). The records displayed are duplicated in the crystal report.

Even I tried using Selection Formula after assigning the Dataset for filtering the records with no solution.

Pls help me in solving the problem. Any help is appreciated and will be a big favour for me.

Thanks in Advance.
Prakash.