Sorry for my poor english .I am new to c# sharp. I am using a mdf file as my database created using database file in c#. So i choose dataset to create my report.i have added the table bill_detail by drag and drop into dataset. i have designed my crystal report and it functions as follows. i have a textbox and a button along with crystallreport viewer.
How it should function : I have to enter the customer number in the textbox and click on the button. once clicked the following code is executed
SqlDataAdapter sda = new SqlDataAdapter();
DataSet ds = new DataSet();
string query, query2;
query = "select * from bill_detail where custmer_number = " + textBox1.Text;
cn1.Open();
sda.SelectCommand = new SqlCommand(query, cn1);
sda.Fill(ds);
CrystalReport2 cry = new CrystalReport2();
cry.SetDataSource(ds);
crystalReportViewer1.ReportSource = cry;
But when i click it shows me
VSHost32.exe has stopped working