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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 private void PrintWare_Load(object sender, EventArgs e)//初始化
 {
     if (ware.Trim() == "图书")
     {
         PrintBookReport bookreport = new PrintBookReport();
         bookreport.SetDataSource(dataset);
         this.crystalReportViewer1.ReportSource = bookreport;
     }
     else
     {
         PrintCdReport cdreport = new PrintCdReport();
         cdreport.SetDataSource(dataset);
         this.crystalReportViewer1.ReportSource = cdreport;
     }
 }