Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            InDSKhachHang rpt = new InDSKhachHang();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmInDSKhachHang_Load(object sender, EventArgs e)
        {
            InDSKhachHang rpt = new InDSKhachHang();

            rpt.DataSourceConnections[0].SetConnection(conn.ServerName1, conn.DataBase, conn.StrUser, conn.StrPass);
            //rpt.SetDatabaseLogon(frmKetNoiHeThong.Luu.user, frmKetNoiHeThong.Luu.pass);
            rpt.Refresh();
            ReportDSKhachHang.ReportSource     = rpt;
            ReportDSKhachHang.DisplayToolbar   = true;
            ReportDSKhachHang.DisplayStatusBar = false;
            ReportDSKhachHang.Refresh();
        }