gpt4 book ai didi

reporting-services - SSRS 在每一页的下一列继续

转载 作者:行者123 更新时间:2023-12-04 07:53:07 24 4
gpt4 key购买 nike

我正在构建一个包含 2 列的 SSRS 报告(2016):

---------------------------------------------
| ID | Service Number | ID | Service Number |
| 1 | A | 11 | K |
| 2 | B | 12 | L |
| 3 | C | 13 | M |
| 4 | D | 14 | N |
| 5 | E | 15 | O |
| 6 | F | 16 | P |
| 7 | G | 17 | Q |
| 8 | H | 18 | R |
| 9 | I | 19 | S |
| 10 | J | 20 | T |
---------------------------------------------

要求:
  • 数据应该首先完全占据左边的列表,然后从右边开始。这应该是每页。所以,例如:如果我的总记录数是 100 并且一个页面可以处理 40 条记录(左边 20 条,右边 20 条),我们需要在第一页上显示 1 到 40 条记录。第二个是 40 到 80,依此类推。
  • 每个页面的左右列都应该有一个标题。

  • 笔记:
    我已经尝试过这里给出的解决方案: SSRS - How to continue data to next column?
    这里的问题是,如果我只有 10 条记录,它会在左侧拆分 5 个,在右侧拆分 5 个,这不符合我的要求。

    最佳答案

    您链接到的解决方案的最后一段应该有效:

    You could adapt this method to do true multi-column by working out how many rows you can fit on the page from the InteractiveSize-Height property and displaying that many columns in the left table then the rest in the right table and so on throughout the report but this might be fragile depending on renderer and changing page layout settings like margins. The method above is simple and effective.



    对于每页每表 40 条记录的固定数量,这将是:

    第一个表的详细信息行,对于 Visibility-Hidden 属性,使用以下公式:
    =iif(((RowNumber(Nothing)-1)\40) Mod 2, True, False)

    在第二个表的 Detail 行上,对于 Visibility-Hidden 属性,使用相反的公式:
    =iif(((RowNumber(Nothing)-1)\40) Mod 2, False, True)

    这样左侧将显示 1-40,右侧将显示第 41-80 行。
    下一页将在左侧显示 81-120,在右侧显示 121-160,假设一页适合 40 行。

    关于reporting-services - SSRS 在每一页的下一列继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41356137/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com