在 rdlc 报告中,我可以在 subreporteventhandler 中以编程方式选择多个可能的子报告之一吗?

发布于 2024-09-09 20:22:51 字数 166 浏览 3 评论 0原文

我有一个主报告,其中有一个用于子报告的空间。根据主要报告参数之一,我想加载许多不同的可能的子报告之一。当我在 subreportprocessingeventargs 中看到报告路径参数时,我感到有点兴奋,但结果是只读的!

那么,有人可以告诉我可以通过编程方式更改报告定义吗?我已经下定决心要这么做了!

I have a main report, with a space for a sub report. Depending on one of the main report parameters, I want to load one of many different possible sub reports. I got kind of excited when I saw a report path parameter in the subreportprocessingeventargs, but that turned out to be READ ONLY!

So, can someone please tell me it's possible to change the report definition programmatically? I've got my heart set on this!

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

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

发布评论

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

评论(1

旧话新听 2024-09-16 20:22:51

您无法在子报告之间进行选择。但是,您可以使用主报告中的参数将所有子报告逐个添加,将“隐藏”“False”仅设置为子报告的一个。这样,您将在报告中看到所有子报告,但只显示一份。

You can not choose between sub-reports. The but you can add all the sub-reports one after another the using the parameter form the main report set Hidden "False" only to one for the sub-reports. This way you will have all sub-reports in the report but only one will be shown.

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