在网页上用水晶报表的推模式绑定数据表,已经建立了数据集文件,在crystalreport上也绑定了字段ReportDocument report = new ReportDocument();
report.Load(Server.MapPath("~/CrystalReport.rpt"));
//GetDs是把表导入dataset的方法
DataSet reportDs = Data.GetDs("select * from customers where cname = 'ccc'");
report.SetDataSource(reportDs.Tables["customers"]);
CrystalReportViewer1.ReportSource = report;但是调试的结果总是“您请求的报表需要更多信息”,要求登录服务器“DataSet1”的登录信息,这是怎么回事?
report.Load(Server.MapPath("~/CrystalReport.rpt"));
//GetDs是把表导入dataset的方法
DataSet reportDs = Data.GetDs("select * from customers where cname = 'ccc'");
report.SetDataSource(reportDs.Tables["customers"]);
CrystalReportViewer1.ReportSource = report;但是调试的结果总是“您请求的报表需要更多信息”,要求登录服务器“DataSet1”的登录信息,这是怎么回事?
解决方案 »
- vs2005无法启动调试
- 水晶报表中节和组的区别?
- ASP.NET简单问题
- 我用RequiredFieldValidator验证用户登陆时是否输入内容的时候出的错误
- 关于Table控件和Table控件的使用
- 加密后编码ASCII字符串用以在URL地址里显示的问题
- 如何更好解决ASP.net用户控件的相对路径问题?
- 由updatepanel控件动态生成的控件不能刷新另外一个updatepanel控件,响应Click事件
- 急! 调用word的替换功能。为什么只有第一次成功??
- 有关microsoft agent
- C# asp.net服务器端如何 输出json格式的数据
- 动态添加下更多拉框 添加下拉框的内容从数据库读取内容
http://topic.csdn.net/u/20090726/14/100eadf9-60a2-415a-aaf7-d7796f4da924.html?73441
还有就是你的table名要和建的数据集里面的table名一致,参考http://topic.csdn.net/u/20090626/18/0e7d0af0-2555-479d-9cb5-84175787f2cd.html?36634