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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["ReportData"] != null)
     {
         var            productList = Session["ReportData"] as List <ProductCls>;
         CrystalReport1 infoReport  = new CrystalReport1();
         infoReport.SetDataSource(productList);
         CrystalReportViewer1.ReportSource = infoReport;
     }
 }