如何隐藏行组中的一行?

发布于 2024-09-30 07:27:08 字数 212 浏览 0 评论 0原文

我在 SSRS 2008 中有一个报告,其结构如下:

List
  Tablix
    Row Group
      Row1
        Field
      Row2
        Subreport

是否可以根据某些条件完全隐藏行组中的第一行?

我可以隐藏该行,但空行仍然占用空间,我希望空行根本不占用空间。

I have a report in SSRS 2008 that has the following structure:

List
  Tablix
    Row Group
      Row1
        Field
      Row2
        Subreport

Is it possible to completely hide the first row in the row group, based on some condition?

I can hide the row, but the empty row still takes up space, I want the empty row to take up no space at all.

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

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

发布评论

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

评论(2

别再吹冷风 2024-10-07 07:27:08

部分答案在此问题链接到的讨论中给出:

尝试设置“详细信息组”下的“静态行组”的“隐藏”属性,在这种情况下,整行将消失,而不是文本框的内容。如果您正在使用报表生成器,则需要切换到高级模式(确保显示“属性”和“分组”窗口,转到“分组”窗口右上方并按黑色三角形),单击“(详细信息)”组下的第二个“静态”项,可以设置隐藏属性属性窗口。

但是,当尝试将报告导出为 PDF 时,这会导致异常。

Part of the answer is given in the discussion that this question links to:

Try to set the Hidden property of the Static Row Group under the Details Group, in this case the whole row will disappear instead of the content of the textboxes.If you are using Report Builder, you need to switch to Advanced Mode (make sure that the Properties and the Grouping windows are displayed, go to the upper right side of the Grouping window and press the black triangle), click on the second "Static" item under the "(Details)" group and you can set the Hidden property on the Properties window.

However, this causes an exception when trying to export the report as PDF.

一身仙ぐ女味 2024-10-07 07:27:08

您可以为行的可见性编写一个表达式。

you can write an expression for the visibility of row.

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