コード例 #1
0
        private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            DTO.fThongKeThucPhamDTO fthongkethucpham = new DTO.fThongKeThucPhamDTO();
            DataTable table = fthongkethucpham.LayDS_THUCPHAM();
            CrystalReport_tkThucPham report = new CrystalReport_tkThucPham();

            report.SetDataSource(table);
            crystalReportViewer1.ReportSource = report;
        }
コード例 #2
0
        private void frmThongKeThucPham_Shown(object sender, EventArgs e)
        {
            DTO.fThongKeThucPhamDTO fthongkethucpham = new DTO.fThongKeThucPhamDTO();
            DataTable table = fthongkethucpham.LayDS_THUCPHAM();
            CrystalReport_tkThucPham report = new CrystalReport_tkThucPham();

            report.SetDataSource(table);
            crystalReportViewer1.ReportSource = report;
        }