public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Report_Mon_an rpt = new Report_Mon_an(); rpt.Site = this.Site; return(rpt); }
private void IN_MonAn_Load(object sender, EventArgs e) { Report_Mon_an rpt = new Report_Mon_an(); rpt.SetParameterValue("loc_thang", thang); rpt.SetParameterValue("nhan_vien_lap", BUS_tttk.ten_nhan_vien()); rpt.SetDatabaseLogon(BUS_tttk.ten_dang_nhap(), BUS_tttk.mat_khau(), BUS_tttk.ten_server(), BUS_tttk.ten_database()); crystalReportViewer_MonAn.ReportSource = rpt; crystalReportViewer_MonAn.Refresh(); }