Dim myreport As New CrystalReport21 dbCommand.CommandText = "SELECT * From StudentPayments Where StudentID ='" & CStr(TextBox1.Text) & "' and FeesMonth >='" & CDate(FromDate.Text) & "' and FeesMonth <='" & CDate(ToDate.Text) & "'" da.SelectCommand = dbCommand da.Fill(Dt) myreport.SetDataSource(Dt) CrystalReportViewer1.ReportSource = myreport CrystalReportViewer1.Show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)