public void print() { SqlCommand cmd = new SqlCommand("select * from converstion where status='A'", SC); SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = cmd; DataTable datatable = new DataTable(); da.Fill(datatable); ReportDocument crreport = new ReportDocument(); crreport.Load(Server.MapPath("~/Conversion.rpt")); crreport.SetDataSource(datatable); crreport.PrintToPrinter(1, false, 0, 0); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)