在 SSRS 的重复列表对象中拥有动态子报表

发布于 2024-10-10 05:30:32 字数 195 浏览 0 评论 0原文

我正在 ASP.NET 中呈现报告,我想让用户拥有临时报告,然后将其生成为 PDF。我计划让一个列表对象重复嵌套的子报表对象,然后绑定要使用的报表文件、运行报表所需的数据集和参数,而不是在父报表文件中手动添加子报表并在需要时切换可见性。

我目前正在向谷歌寻求有关这方面的可靠教程,但我仍然没有适当的线索。所以现在我很想知道这是否可能。这里有人以前尝试过这个吗?

I'm rendering reports in ASP.NET and I wanted to let the users have ad hoc reports then generate it into PDF. Instead of manually adding subreports in the parent report file and toggling visibility when needed, I plan to have a list object repeat a nested sub-report object then bind which report file to use, dataset and parameters needed to run the report.

I'm currently scourging Google for a solid tutorial on this and still I have no proper lead. So now I'm desperate to know whether this is possible. Anyone here tried this before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黎歌 2024-10-17 05:30:32

这当然是可能的。打开一个表并在该表中获取一个子报表。按要作为报告参数传入的参数对表进行分组。然后,您可以右键单击子报表项(确保您确实位于子报表而不是表格单元格上)并定义要进入的参数。左侧没有@符号,右侧有:

  • 右键单击子报表子
  • 报表属性
  • 参数
  • 首先是子报表的参数(即:MyArgument1),
  • 然后是当前报表中的参数(即:@Parameter1或您的组)

应该可以解决问题;- )。如果您有疑问,请提问。

It is surely possible. Open a table and get a Subreport in that table. Group the table by the argument you want to pass in as report argument. Then you can rightclick on your subreport item (make sure you're really on the subreport and not the tablecell) and define the arguments you want to get into. Left side without @-sign and right side with:

  • rightclick on subreport
  • subreport properties
  • parameters
  • First the argument for your subreport (i.e.: MyArgument1)
  • then the argument from your current report (i.e.: @Parameter1 or your Group)

Should do the trick ;-). If you have questions just ask.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文