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

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

            ds = cls.Laybang("SELECT Food.Name, Food.Price, FoodCategory.Name FROM  QLNH.dbo.Food Food INNER JOIN QLNH.dbo.FoodCategory FoodCategory ON Food.IdCategory = FoodCategory.ID");
            FoodDataset m = new FoodDataset();

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