I post one first:
DataSet ds = new Dataset1();
CrystalReport1 cr1 =new CrystalReport1();
DataRow dr = ds.Tables[0].NewRow();
dr[0] = "001";
dr[1] = "材料1";
dr[2] = "原件";
dr[3] = 2;
dr[4] = "1";
ds.Tables[0].Rows.Add(dr);
cr1.SetDataSource(ds);
this.crystalReportViewer1.ReportSource = cr1;
DataSet ds = new Dataset1();
CrystalReport1 cr1 =new CrystalReport1();
DataRow dr = ds.Tables[0].NewRow();
dr[0] = "001";
dr[1] = "材料1";
dr[2] = "原件";
dr[3] = 2;
dr[4] = "1";
ds.Tables[0].Rows.Add(dr);
cr1.SetDataSource(ds);
this.crystalReportViewer1.ReportSource = cr1;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货