RDLC 子报告
是否可以使用 IIF 语句来选择使用哪个子报表?我有两个子报表,其中之一始终根据报表参数隐藏,但当其中之一隐藏时,仍然会显示空行。
Is it possible to use an IIF statement to choose which subreport is used? I have two subreports, one of which is always hidden based on a report parameter, but an empty line still shows up when one of them are hidden.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,我不知道有任何方法可以做到这一点。我认为您必须使用反复试验的方法来解决空行问题。根据我的经验,这些恼人的格式问题经常会因为不明原因而出现。尝试更改子报表周围或附近对象的填充或大小。如果这不起作用,请尝试在主报告上创建并放置第三个子报告,其中包含原始的两个子报告,以便主报告上只有一个子报告。
No, I am not aware of any method for doing so. I think you will have to use a trial-and-error approach to solving the empty line issue. In my experience these annoying formatting issues often crop up for obscure reasons. Try changing the padding or sizes of the objects surrounding or in the vicinity of the subreports. If that does not work then try creating and placing a 3rd subreport on the main report which contains the original two subreports so that you have only one subreport on the main report.