RDLC 报告隐藏空白响应列

发布于 2024-11-25 10:43:11 字数 215 浏览 2 评论 0原文

我试图显示来自服务器响应的空记录。在该响应对象中,有一个数据数组对象,在该数据数组对象中,有一个记录数组对象。在记录中,有我在 rdlc 中使用的要查看的字段的属性。因此,如果没有记录,我将动态地将字段(数据类型字符串)分配给 string.empty。所以发生的情况是 rdlc 工作正常,但它在表中的标题标签下方显示一个空框。我不想显示空行,而是想在表标题下方不显示任何内容。有没有什么表达式可以隐藏表中的空行?

I am trying to show the empty record which is coming from a Server Response. In that response object there is a data array object and in that data array object there is a record array object.In the record there are properties for the fields that I am using in the rdlc to view. So if there is no record I am dynamically assigning the fields (data type string) to string.empty. So What's happening is rdlc is working fine but its displaying a empty box below the header labels in the table. I dont want to display empty row instead I want to display nothing below the table headers. Is there any expression to hide the empty row in a table?

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

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

发布评论

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

评论(3

千秋岁 2024-12-02 10:43:11

在行的“属性”中,有一个选项可见性...有三个选项,如 true、false 和表达式...然后选择表达式...您可以分配如下值


 =IIF(String.IsNullOrEmpty(Fields!Fieldname.Value), False,True) 

In the 'property' of the Row there is one option visibility....there are three option like true, false and expression ...then select expression ..you can assign the values like


 =IIF(String.IsNullOrEmpty(Fields!Fieldname.Value), False,True) 

黑白记忆 2024-12-02 10:43:11

以下是 msdn 站点的链接,其中解释了使用 rdlc 控制报表元素的可见性

http://msdn.microsoft.com/en-us/library/dd354976.aspx

如果对您有帮助,请告诉我。

Here is a link to msdn site where they explain controlling visibility of elements of a report using rdlc

http://msdn.microsoft.com/en-us/library/dd354976.aspx

Let me know if it helps you.

失退 2024-12-02 10:43:11

您可以使用此表达式隐藏矩阵中的列

=IIF(String.IsNullOrEmpty(Fields!coumnname.Value), true,false)

you can hide column in matrix by using this expression

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