public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { TKDtThangTrongNamIn rpt = new TKDtThangTrongNamIn(); rpt.Site = this.Site; return(rpt); }
public void TkDtThangTrongNam() { DoanhThuDTO doanhthu = new DoanhThuDTO(); doanhthu.ThoiGianKt = dtpthoigian.Value.ToString(); DataSet ds = doanhthu_bus.ThongKe_DtThangTrongNam(doanhthu); TKDtThangTrongNam tkdt = new TKDtThangTrongNam(); TKDtThangTrongNamIn tkdtin = new TKDtThangTrongNamIn(); tkdtin.SetDataSource(ds.Tables[0]); tkdt.crvTKDtThangTrongNam.ReportSource = tkdtin; tkdt.ShowDialog(); }