After creating a report, No data is polluted
I have added report1,created dataset and priview control in vb win form
and created a report using this dataset.
I use this code to show.
Dim Ds As New DataSet
Dim Adpt As New SqlDataAdapter
Adpt = New SqlDataAdapter("Select * from Vw_Rpt_Fee ", con)
Ds.Clear()
Adpt.Fill(Ds)
Report1.Load("..\..\Rpt_ReceiptTax.frx")
Report1.Clear()
Report1.RegisterData(Ds)
Report1.Prepare()
Report1.Preview = PreviewControl1
Report1.Show()
but when i run report no data comes ,please tell me what is the problem.
thanks.
Comments