Reporting Services:有数据,但未在 ReportViewer 中显示
尽管我对 Crystal Reports 和数据库(以及 MS Access 报告,如果这很重要的话)有很多经验,但我对 Reporting Services 还很陌生。无论如何,我使用向导在 VS2008 中创建了简单的报告项目,并使用具有 2 个选项参数的简单存储过程 - 由于它们是可选的,所以我不分配它们的值。数据集的“预览数据”窗口中有数据,但当我运行报告时它是空的 - 有标题/等,但没有数据。
这里可能出了什么问题?难道是因为我没有分配 SP 参数 - 如果是这样,我该怎么做?我如何“一般”调试这种情况? VS2008 中的报表设计器甚至没有“预览”。
I'm pretty new to Reporting Services though I have a lot of experience with Crystal Reports and databases (and MS Access reports if that counts ;-). Anyway, I created simple reporting project in VS2008 using wizard, with simple stored procedure that has 2 options parameters - and since they're optional I do not assign their values. There's data in the dataset's "Preview data" window, but when I run the report it's empty - there're headers/etc but no data.
What can be wrong here? Can it be because I do not assign SP parameters - and if so, how do I do it? And how do I debug such cases "in general"? There's no even "preview" in report designer in VS2008.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,我创建了包含表格的报告,并手动添加了 SP - 它有效。但它在矩阵中显示的数据不正确。当我使用 Report Builder 2.0 中的向导执行相同的操作时(它的工作方式就像一个超级按钮),报告已创建,有预览,并且结果页面中的数据是正确的。看起来要么 VS2008 坏了,要么我不明白里面的东西。
Hm, I created report with tables inside, and manually added SP - it worked. But it shows data incorrectly in matrix. When I do the same thing using wizard in Report Builder 2.0 - it works like a charm - report is created, there's a preview, and data is correct in the resulting page. Looks like either VS2008 is broken or I don't understand something in there.