public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReport2 rpt = new CrystalReport2(); rpt.Site = this.Site; return(rpt); }
private void Frm报班调度报表_Load(object sender, EventArgs e) { DataTable dt = myDispatchingManagementClient.selectbaobanbanci().Tables[0]; 集团客运管理系统DataSet myshujuji = new 集团客运管理系统DataSet(); myshujuji.Tables["Datatable1"].Merge(dt); CrystalReport2 mymuban = new CrystalReport2(); mymuban.SetDataSource(myshujuji); crystalReportViewer1.ReportSource = mymuban; }