水晶报表9问题急!!!在线等待,求各位高手帮忙
主要部分的代码如下:
crStudentState crReportDocument = new crStudentState();
SqlConnection myConnection = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["conWeb.ConnectionString"]);
SqlDataAdapter sda = new SqlDataAdapter("select * from stubaseinf",myConnection);
dsStudentState dataSet = new dsStudentState();
sda.Fill(dataSet,"StuBaseInf");
crReportDocument.SetDataSource(dataSet);
CrystalReportViewer1.ReportSource = crReportDocument;
经调试证明DataSet的"StuBaseInf"中有数据
可在执行到crReportDocument.SetDataSource(dataSet);时却报如下错误:
CrystalDecisions.CrystalReports.Engine.InternalException: 无法找到清单资源中的报告。请创建项目并再次尝试。
我以前用同样的方式做过报表并没有出错。实在弄不明白是什么原因。麻烦在线的高手给予解答。不胜感激。