Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Report_Hoadon rpt = new Report_Hoadon();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void Report_tblHoadonbanhang_Load(object sender, EventArgs e)
        {
            //List<tblHoadonbanhang> listHoadon = new List<tblHoadonbanhang>();
            //listHoadon = new XuLy_tblHoadonbanhang().tblHoadonbanhang_Select(0);

            DataTable t = new DataTable();

            t = new XuLy_tblHoadonbanhang().TimKiem(sql);

            //DataSet dataSet = new DataSet();
            //DataTable dataTable = new XuLy_tblHoadonbanhang().TimKiem(sql);
            //dataSet.Tables.Add(dataTable);

            Report_Hoadon rp = new Report_Hoadon();

            //CrystalReport_tblHoadonbanhang rp = new CrystalReport_tblHoadonbanhang();
            rp.SetDataSource(t);
            crystalReportViewer_tblHoadonbanhang.ReportSource = rp;
            //crystalReportViewer_tblHoadonbanhang.Show();
        }