水晶报表问题, 错误是“报表文件路径无效”,下面是代码
private void BindReport(){
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=TestYP;User ID=sa;Password=ouwen");
con.Open();
ReportDocument rpt = new ReportDocument();
DataSet ds = new DataSet();
string sql = "SELECT * FROM Carpark INNER JOIN District ON Carpark.DISTRICT_ID = District.DISTRICT_ID";
SqlDataAdapter MyAdapter = new SqlDataAdapter(sql, con);
MyAdapter.Fill(ds,"ReproDataTable1");
rpt.SetDataSource(ds);
this.CrystalReportViewer1.ReportSource = rpt;
} --------------------编程问答-------------------- 断点跟一下你的ds看看里面有没有数据,然后再去比对一下。
补充:.NET技术 , ASP.NET