private void get_bill() { if (Session["admin_id"] != "") { DataTable dt = Select_Logic.get_data_crystal("select_bill_no_sp", bill_no); if (dt.Rows.Count > 0) { ReportDocument data = new ReportDocument(); Bill_Data bs = new Bill_Data(); data.Load(Server.MapPath("Product_Bill.rpt")); //crystal report will be loaded in report document data.SetDataSource(dt); //all data will be filled in report from data table crv_bill.ReportSource = data; //assign data in crystal report } } }