Click here to Skip to main content
15,891,993 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Frnd.

I have this error an SAP crtstal report.. please verify it wt is the prob..
C#
if (TextBox1.Text == "")
      {
          DataTable dt = new DataTable();
          SqlConnection con = new SqlConnection();
          con.ConnectionString = "Data Source=PALANIVEL;Initial Catalog=HMS;User ID=sa;Password=login";
          con.Open();
          SqlDataAdapter ad = new SqlDataAdapter();
          // VDateWiseDocAppt t2 = new VDateWiseDocAppt();
          DeptWiseIP t2 = new DeptWiseIP();
          ad = new SqlDataAdapter("select * from  Vw_InPatient where Department_Name between '" + TextBox1.Text + "' ", con);
          ad.Fill(dt);
          t2.SetDataSource(dt);
          CrystalReportViewer1.ReportSource = t2;
          CrystalReportViewer1.RefreshReport();
      }
Posted
Updated 16-Feb-14 18:29pm
v2
Comments
OPees 17-Feb-14 0:21am    
what error?
vignesh war 17-Feb-14 2:08am    
Error 8 The type or namespace name 'DateWiseDocApt' could not be found (are you missing a using directive or an assembly reference?) D:\Processed HMS-Vivek\PT-CARE 14.02.2014-Final\DateWiseDocAppt.aspx.cs 27
[no name] 17-Feb-14 0:30am    
What is the error..??
vignesh war 17-Feb-14 2:08am    
Error 8 The type or namespace name 'DateWiseDocApt' could not be found (are you missing a using directive or an assembly reference?) D:\Processed HMS-Vivek\PT-CARE 14.02.2014-Final\DateWiseDocAppt.aspx.cs 27
Malli_S 17-Feb-14 1:58am    
You might have missed to add error details. Please include error string/details in your post.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900