水晶报表问题:该报表不包含表。(问题程序:★★★★★)
SqlConnection myconn = new SqlConnection(ConfigurationManager.AppSettings[ "wu "].ToString());
SqlDataAdapter myadapter = new SqlDataAdapter( "select * from car ", myconn);
DataSet mydataset = new DataSet();
myadapter.Fill(mydataset, "car ");
string nn = Application.StartupPath.ToString();
ReportDocument rep = new ReportDocument();
rep.Load(nn + "\\CrystalReport1.rpt ");
rep.SetDataSource(mydataset.Tables[ "car "]);
crystalReportViewer1.ReportSource = rep;
运行时。“它提示该报表不包含表”。这是怎么一回事,我搜过,有人也碰到这个问题,却没人留下解决办法。;
------解决方案--------------------你好没有在报表中绑定datasourse
------解决方案--------------------你在报表中自己拉栏位,加字段