SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM tbl_CurrentStock", con); DataSet1 dt = new DataSet1(); da.Fill(dt, "Report"); ReportDocument rd = new ReportDocument(); rd.SetDatabaseLogon("sa", "server@1", "(local)", "storedb"); rd.Load(Server.MapPath("CrystalReport1.rpt")); rd.SetDataSource(dt.Tables["Report"]); CrystalReportViewer1.ReportSource = rd; CrystalReportViewer1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)