Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            cry_reportAllroom rpt = new cry_reportAllroom();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void load()
        {
            DataSet ds = new DataSet();

            MySqlDataAdapter da = new MySqlDataAdapter();

            da = new MySqlDataAdapter("SELECT * FROM rooms", conn);
            da.Fill(ds, "rooms");
            cry_reportAllroom report = new cry_reportAllroom();

            report.SetDataSource(ds);
            view_allroom.ReportSource = report;
            view_allroom.RefreshReport();
        }