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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void frmInDSNhaCC_Load(object sender, EventArgs e)
        {
            InDSNhaCC rpt = new InDSNhaCC();

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