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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            dal            objdal = new dal();
            DataSet1       ds     = objdal.GetPolicyData();
            CrystalReport1 objRpt = new CrystalReport1();

            objRpt.SetDataSource(ds.Tables[1]);
            CrystalReportViewer1.ReportSource = objRpt;
        }