水晶报表不显示数据
代码:stringnumber=txtNumber.Text;stringsql="select*fromView_PushwheremNumber='"+number+...
代码:
string number = txtNumber.Text;
string sql = "select * from View_Push where mNumber='" + number + "'";
myDataSet ds = new myDataSet();
SqlDataAdapter sda = SqlHelper.ExecuteDataApter(sql);
sda.Fill(ds);
ReportDocument rd = new ReportDocument();
string reportfile = Server.MapPath("myPushReport.rpt");
rd.Load(reportfile);
rd.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DataBind(); 展开
string number = txtNumber.Text;
string sql = "select * from View_Push where mNumber='" + number + "'";
myDataSet ds = new myDataSet();
SqlDataAdapter sda = SqlHelper.ExecuteDataApter(sql);
sda.Fill(ds);
ReportDocument rd = new ReportDocument();
string reportfile = Server.MapPath("myPushReport.rpt");
rd.Load(reportfile);
rd.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DataBind(); 展开
展开全部
string number = txtNumber.Text;
string sql = "select * from View_Push where mNumber='" + number + "'";
DataTable ds=new DataTable();
SqlDataAdapter sda = SqlHelper.ExecuteDataApter(sql);
sda.Fill(ds);
ReportDocument myReport = new ReportDocument();
string reportPath = "";
reportPath = Server.MapPath("myPushReport.rpt");
myReport.Load(reportPath);
myReport.SetDataSource(ds);
CrystalReportViewer1.ReportSource = myReport;
string sql = "select * from View_Push where mNumber='" + number + "'";
DataTable ds=new DataTable();
SqlDataAdapter sda = SqlHelper.ExecuteDataApter(sql);
sda.Fill(ds);
ReportDocument myReport = new ReportDocument();
string reportPath = "";
reportPath = Server.MapPath("myPushReport.rpt");
myReport.Load(reportPath);
myReport.SetDataSource(ds);
CrystalReportViewer1.ReportSource = myReport;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
面向科技
2024-12-04 广告
2024-12-04 广告
数据清洗、对账及分析是数据处理的关键环节。数据清洗指对原始数据进行预处理,包括去除重复、纠正错误、填补缺失值等,以确保数据质量。对账则是将不同来源的数据进行比对,核实数据的一致性,常用于财务、库存管理等领域的核对工作。分析则基于清洗后的数据...
点击进入详情页
本回答由面向科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询