2 years ago
#43471
Salim Shaikh
I want to display data in Crystal Report, But I don't understand what is the problem with my code
con.Open();
SqlCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "Select * from SIZENN where INVOICENO ='" + textBoxINVOICENO.Text + "', ";
cmd.ExecuteNonQuery();
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(ds, "SIZENN");
CRYRPTT myReport = new CRYRPTT();
myReport.SetDataSource(ds);
crystalReportViewer1.ReportSource = myReport;
crystalReportViewer1.Refresh();
con.Close();
I want to show data in a Crystal Report, but I don't understand what the exact problem is with my code.
c#
asp.net
crystal-reports
0 Answers
Your Answer