Example #1
0
        private void CRHoaDonNhanVien_Load(object sender, EventArgs e)
        {
            ReportDocument rp = new ReportDocument();

            rp.Load(@"C:\Users\Ron\Desktop\Tốt Nghiệp\CHTapHoa\CHTapHoa\Reports\HoaDonNhanVien.rpt");
            HoaDonXuatBUS        _hdxBus  = new HoaDonXuatBUS();
            List <HoaDonXuatDTO> lst      = new List <HoaDonXuatDTO>();
            List <HoaDonXuatDTO> lshdxdto = _hdxBus.LayHDTheoMaNhanVien(maNV);

            rp.SetDataSource(lshdxdto);
            crystalReportViewer1.ReportSource = rp;
            this.crystalReportViewer1.Show();
            this.crystalReportViewer1.RefreshReport();
        }