水晶报表为什么没结果显示?问题都好几天了没解决,希望高手能指点下!
Dataset1 ds=new Dataset1();
command=new OleDbCommand();
command.Connection=connection;
adapter=new OleDbDataAdapter(command);
adapter.SelectCommand.CommandText="SELECT * FROM Information";
adapter.Fill(ds,"Information");
this.dataGrid1.DataSource=ds.Tables["Information"];
CrystalReport1 CRPT=new CrystalReport1();
CRPT.SetDataSource(ds);
crystalReportViewer1.ReportSource=CRPT;
后来我把CRPT.SetDataSource(ds);变成CRPT.SetDataSource(ds.Tables["Information"]);又报
“未处理的“CrystalDecisions.CrystalReports.Engine.InvalidArgumentException”类型的异常出现在 crystaldecisions.crystalreports.engine.dll 中。
其他信息: 文件 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_3ca83b85-3151-4eec-8a37-8cff74b4cefd.rpt 内出错:
无效表号。”
怎么回事啊?有没人遇到过这种问题啊?