예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportSite rpt = new CrystalReportSite();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void frmSiteReport_Load(object sender, EventArgs e)
        {
            IT_Project_DatabaseEntities db = new IT_Project_DatabaseEntities();
            CrystalReportSite           cr = new CrystalReportSite();

            cr.SetDataSource(db.GetSiteOwner().ToList());
            crystalReportViewer1.ReportSource = cr;
        }