Hi,
I will do project VB.Net 2003 ,I have error runtime but i don't know it's mean.
I wan't query sql show in CrystalReportViewer . But is error
Somebody please help with the code or a way of fixing this problem.
Code
Dim report As New Report1
Dim SqlString As String = "SELECT * FROM TBL_FJT_TEST WHERE ID_LOT_NO ='" & dmRow_Id & "'"
CrystalReportViewer1.ReportSource = report
Dim dt As New DataTable
Dim da As New SqlDataAdapter(SqlString, conn)
da.Fill(dt)
report.Database.Tables(0).SetDataSource(dt)
CrystalReportViewer1.ReportSource = rpt1




Reply With Quote