Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Doanhthu1 rpt = new Doanhthu1();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void crystalReportViewer2_Load(object sender, EventArgs e)
        {
            cls.KetNoi();
            DataSet dt = new DataSet();

            dt = cls.Laybang("select Id,DatecheckIn,DatecheckOut,IdTable,discount,TotalPrice from Bills");
            Doanhthu1 m = new Doanhthu1();

            m.SetDataSource(dt);
            crystalReportViewer2.ReportSource = m;
        }