예제 #1
0
        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;
        }
예제 #2
0
        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;
        }