Click here to Skip to main content
15,795,331 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
protected void Button5_Click(object sender, EventArgs e)
con = new SqlConnection("Server=(local);initial catalog=master;Trusted_Connection=True");
string str = "select * from Empdet where EmployeeID='" + DropDownList1.SelectedValue + "'";
SqlCommand com = new SqlCommand(str, con);
SqlDataAdapter sqlda = new SqlDataAdapter(com);
DataSet ds = new DataSet();
sqlda.Fill(ds, "Empdet");

ReportDocument r1 = new ReportDocument();
string path = Server.MapPath("Reports/Employee.rpt");
CrystalReportViewer1.ReportSource = r1;

Textbox Button.

In textbox when i type partiuclar employee id and click the button,Error As follows
Load Report failed.please help me and send the code.

1 solution

Share this answer

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