- SqlConnection con = new SqlConnection(this.con);
- SqlDataAdapter sda = new SqlDataAdapter("Select * from S_TEST Where S_ID='" + txtidno.Text + "'", con);
- DataSet ds = new DataSet();
- sda.Fill(ds);
- ReportDocument rpd = new ReportDocument();
- rpd.Load(Server.MapPath("~/Report/studentpass.rpt"));
- rpd.SetDataSource(ds.Tables[0]);
- CrptViewer.ReportSource = rpd;
- rpd.PrintToPrinter(1, false, 0, 0);
Print current Record
i have tried below code to print current record on crystal report.Report is generated when press button but report is blank printing. records not printing on crystal report what to do...?

Bhavesh VankarPosted Jan 30, 2021, 6:55 AM
Sachin SinghPosted Jan 29, 2021, 9:41 AM