private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e) { DTO.fThongKeNhaPhanPhoiDTO fthongkenhapp = new DTO.fThongKeNhaPhanPhoiDTO(); DataTable table = fthongkenhapp.LayDS_NHAPHANPHOI(); CrystalReport_tkNhaPhanPhoi report = new CrystalReport_tkNhaPhanPhoi(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; }
private void frmThongKeNhaPhanPhoi_Shown(object sender, EventArgs e) { DTO.fThongKeNhaPhanPhoiDTO fthongkenhapp = new DTO.fThongKeNhaPhanPhoiDTO(); DataTable table = fthongkenhapp.LayDS_NHAPHANPHOI(); CrystalReport_tkNhaPhanPhoi report = new CrystalReport_tkNhaPhanPhoi(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; }