示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CustomerReport rpt = new CustomerReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void CustomerPrintReport_Load(object sender, EventArgs e)
        {
            CustomerReport rpt = new CustomerReport();

            rpt.SetDataSource(_list);
            crystalReportViewer1.ReportSource = rpt;
            crystalReportViewer1.Refresh();
        }