protected void btngenerate_Click(object sender, EventArgs e) { ReportDocument report = new ReportDocument(); report.Load(Server.MapPath("CrystalReport1.rpt")); using (IAPEntities db = new IAPEntities()) { report.SetDataSource(from u in db.attendance1 select new { u.type, u.present, u.absent, u.working, u.month}); } CrystalReportViewer1.ReportSource = report; }
IAPEntities
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)