水晶报表为什么没结果显示?问题都好几天了没解决,希望高手能指点下!

goodluckyj 2006-10-09 10:47:46
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 内出错:
无效表号。”


怎么回事啊?有没人遇到过这种问题啊?
...全文
155 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
WENZI1234 2006-10-09
  • 打赏
  • 举报
回复
我碰到过一种也没找出原因只是把该文件删除然后重开就好了
[其他信息: 文件 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_3ca83b85-3151-4eec-8a37-8cff74b4cefd.rpt 内出错:
无效表号。”]

4,819

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧