水晶报表,求解啊。各路英雄好汉,来看看、
private void BindReport()
{
SqlConnection con = new SqlConnection("Data Source=198.98.98.171;Initial Catalog=YPCADRE;User ID=sa;Password=cadre");
ReportDocument rpt = new ReportDocument();
DataSet ds = new DataSet();
string sql = "SELECT * FROM t_Carpark INNER JOIN t_District ON t_Carpark.DISTRICT_ID = t_District.DISTRICT_ID";
SqlDataAdapter MyAdapter = new SqlDataAdapter(sql, con);
MyAdapter.Fill(ds,"ReproDataTable1");
rpt.SetDataSource(ds);
this.CrystalReportViewer1.ReportSource = rpt;
CrystalReportViewer1.DataBind();
}
报表文件路径无效。 怎么回事 。 求解。。