public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { RptDoanhThuTheoNgay rpt = new RptDoanhThuTheoNgay(); rpt.Site = this.Site; return(rpt); }
public void LoadDoanhThuTheoThang() { try { RptDoanhThuTheoNgay _doanhthungay = new RptDoanhThuTheoNgay(); string path = Application.StartupPath + "\\RptDoanhThuTheoNgay.rpt"; _doanhthungay.FileName = path; _doanhthungay.SetDatabaseLogon("sa", "dmc3star", "TIENTHANH-PC", "phong_kham_benh"); _doanhthungay.SetParameterValue("@Nam", _nam); _doanhthungay.SetParameterValue("@Thang", _thang); crystalReportViewer1.ReportSource = _doanhthungay; } catch (Exception ex) { MessageBox.Show(ex.Message); } }