public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { TKDtCaTrongNgayIn rpt = new TKDtCaTrongNgayIn(); rpt.Site = this.Site; return(rpt); }
public void TkDtCaTrongNgay() { DoanhThuDTO doanhthu = new DoanhThuDTO(); doanhthu.ThoiGianKt = dtpthoigian.Value.ToString(); DataSet ds = doanhthu_bus.ThongKe_DtCaTrongNgay(doanhthu); TKDtCaTrongNgay tkdt = new TKDtCaTrongNgay(); TKDtCaTrongNgayIn tkdtin = new TKDtCaTrongNgayIn(); tkdtin.SetDataSource(ds.Tables[0]); tkdt.crvdoanhthucatrongngay.ReportSource = tkdtin; tkdt.ShowDialog(); }