Telerik Reporting - 子报告 - 报告源
在过去一个月左右的时间里,我一直在处理报告。我目前正在处理子报表。 假设我有一个 telerik 报告文件 (report_1),其中有一个子报告元素。在与 report_1 相同的项目中,我还有几个其他 telerik 报告文件。我能否将这些报告文件作为report_1 中子报告的报告源引用? 如果是,我无法在报表源属性的下拉列表中看到它们。 如果没有,为什么? 或者我有什么遗漏的吗?或者,我需要做什么才能将报告文件添加到下拉列表中。 我看过你之前的帖子,其中提到了重建项目。但是,我不是通过 Visual Studio 构建该项目。因此,请建议可以做什么。
I have been working with reports for the past one month or so. I am presently working with subreports.
Say I have a telerik reporting file (report_1) which has a subreport element in it. In the same project as report_1 is, I have couple of other telerik reporting files. Cant I refer these reporting files as report source of the subreport in report_1?
If yes, I am not able to see them in the dropdown of the reportsource property.
If no, why?
Or is there anything that I am missing? or, is there anything that I need to do to get the reporting files on to the dropdown.
I have seen your previous postings, which said about re-building the project. But, I am not building the project through visual studio. So, please suggest what can be done.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您希望在同一项目中将其他报告文件用作子报告,则应该能够从报告源属性中选择它们。可能您缺少参考。在任何情况下,检查有关创建 Master- 的文档可能会很有用Telerik 报告学习指南上的详细报告以及有关子报告的部分
If you have the other reporting files you want to use as subreports in the same project, you should be able to select them from the report source property. May be you are missing a reference. In any case it might be useful to check the documentation on creating Master-Detail reports and the section about subreports on the Telerik reporting learning guide
尝试使用 ReportSource.ReportDocument.DataSource 属性进行绑定。
例如 ReportSource.ReportDocument.DataSource/=Fields.Items
Try to use ReportSource.ReportDocument.DataSource property for binding.
e.g. ReportSource.ReportDocument.DataSource/=Fields.Items
确保子报表的报表标题被删除。
然后,如果您查看主报表上子报表元素的属性并转到报表源(按照卡米洛的建议)
有一个省略号按钮 (...)
- 单击该按钮,然后选择对象源。
您的子报告应该位于下拉列表中
make sure the subreports have their report headers stripped out.
then, if you look at the properties of the subreport element on the main report and go to reportsource (as suggested by Camilo)
there is an ellipsis button (...)
- click that then select object source.
your subreports should then be in the drop down
既然您没有告诉我们您使用什么来构建报告,我们该如何回答?
好吧,如果你实际上使用 VS,答案将是
对问题 1 的回答:是的
对问题 2 的回答:可能有多种原因(这些是我见过的):
也许如果他与我们分享他正在使用的构建工具,我们也许能够提供更好的帮助。
Since you have not told us what you're using to build the report, how can we answer?
Well, if you were actually using VS the answers would be
Answer to Q1: yes
Answer to Q2: there could be various reasons (these are the ones I have seen):
Perhaps if he shares with us what build tool he is using, we may be able to help better.