本文介绍了如何在.NET Reporting RDLC中的某些条件下隐藏或不打印页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个报告,其中我得到了三个分组.在某些情况下,我显示明细''行,例如我在状态"为"True"的详细信息组中创建了一个过滤器,并在页脚中显示了它们的总数.而Status = False则用于页面上的其他计算.
因此,我不能仅将数据源查询修改为仅包含Status = True的行.所有行都是必需的.

现在我的问题是,如果没有任何行,其中Status = True,那么仍然生成带有页眉,无行且页脚总计= 0的页面.如果没有显示的详细信息并且总计= 0,我不想生成页面.

I have a report where I have got three groupings.I display details'' rows on certain condition e.g. I created a filter in details group where Status = True and display their total in page footer. Whereas Status = False is used for other calculations on page.
So I cannot just modify the datasource query to only have rows where Status = True. All the rows are required.

Now my problem is if there are no rows where Status = True, then still the page gets generated with header, no rows and total = 0 in footer. I do not want to generate a page if there are no details displayed and the total = 0.

Is there a way we can control the conditional visibility of a page in RDLC reports?

推荐答案


这篇关于如何在.NET Reporting RDLC中的某些条件下隐藏或不打印页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 15:05