Example #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataTable dt     = getDataNCC();
            NCCreport report = new NCCreport();

            report.SetDataSource(dt);
            ReportForm reportForm = new ReportForm();

            reportForm.rpt.ReportSource = report;
            reportForm.ShowDialog();
        }
Example #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataTable           dt     = getDataHoaDonBan();
            HoaDonBanHangReport report = new HoaDonBanHangReport();

            report.SetDataSource(dt);
            ReportForm form = new ReportForm();

            form.rpt.ReportSource = report;
            form.ShowDialog();
        }