public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { TKSLtheoThL rpt = new TKSLtheoThL(); rpt.Site = this.Site; return(rpt); }
private void btnXuat_Click(object sender, EventArgs e) { // Kết xuất nguồn dữ liệu cho report TKSLtheoThL baocao = new TKSLtheoThL(); baocao.SetDataSource(bus.getMaTL(dtNgayM.Value.Date.ToString("yyyy-MM-dd"), dtNgayT.Value.Date.ToString("yyyy-MM-dd"))); // Hiển Thị Dữ Liệu FormHiensltheoThL prf = new FormHiensltheoThL(); prf.view1.ReportSource = baocao; prf.ShowDialog(); }