org_departmentTableAdapter adapter = new org_departmentTableAdapter();
org_department1TableAdapter adapter1 = new org_department1TableAdapter();
DataTable table = adapter.GetDataBySql(strSQL2);
DataTable table1 = adapter1.GetDataBySql(strSQL);
DataSet ds = new DataSet();
ds.Tables.Add(table);
ds.Tables.Add(table1);
ReportDocument ReportDocument = new ReportDocument();
ReportDocument.FileName = Server.MapPath("PerAgeAnalysisReport.rpt");
ReportDocument.SetDataSource(ds); base.RptDocument = ReportDocument; this.CrystalReportViewer1.DisplayGroupTree = false;
this.CrystalReportViewer1.ReportSource = ReportDocument;就是报表绑定两张表 table1显示数据 table用来显示图表 table1断点跟踪确定有61条记录 但是报表出来发现有500多条数据 有很多重复数据 该怎么解决啊
org_department1TableAdapter adapter1 = new org_department1TableAdapter();
DataTable table = adapter.GetDataBySql(strSQL2);
DataTable table1 = adapter1.GetDataBySql(strSQL);
DataSet ds = new DataSet();
ds.Tables.Add(table);
ds.Tables.Add(table1);
ReportDocument ReportDocument = new ReportDocument();
ReportDocument.FileName = Server.MapPath("PerAgeAnalysisReport.rpt");
ReportDocument.SetDataSource(ds); base.RptDocument = ReportDocument; this.CrystalReportViewer1.DisplayGroupTree = false;
this.CrystalReportViewer1.ReportSource = ReportDocument;就是报表绑定两张表 table1显示数据 table用来显示图表 table1断点跟踪确定有61条记录 但是报表出来发现有500多条数据 有很多重复数据 该怎么解决啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货