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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #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;
     }
 }