public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crp稽单报表 rpt = new crp稽单报表(); rpt.Site = this.Site; return(rpt); }
private void Frm出站稽单报表_Load(object sender, EventArgs e) { string PlateNumber = Frm出站稽单.PlateNumber; DataTable 明细 = mychezhanjichaClient.SELECTJICHAXIANGMUMINGXI(PlateNumber).Tables[0]; int TheStationInspectionID = Convert.ToInt32(明细.Rows[0]["TheStationInspectionID"]); DataTable 稽查项目 = mychezhanjichaClient.selectjichaxiangmu(TheStationInspectionID).Tables[0]; 集团客运管理系统DataSet my数据集 = new 集团客运管理系统DataSet(); my数据集.Tables["出站稽查明细"].Merge(明细); my数据集.Tables["出站稽查项目"].Merge(稽查项目); crp稽单报表 mycrp稽单报表 = new crp稽单报表(); mycrp稽单报表.SetDataSource(my数据集); crystalReportViewer1.ReportSource = mycrp稽单报表; }