ReportDocument report = new ReportDocument(); report.Load(Server.MapPath("CrystalReport2.rpt")); report.SetDatabaseLogon("sa", "amman", @"AMMAN-42796DF5F\SQLEXPRESS", "Medicals"); report.SetDataSource(dt); CrystalReportViewer1.ReportSource = report; if (!IsPostBack) { report.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)