【问题标题】:crystal reports fix group section height水晶报表修复组部分高度
【发布时间】:2021-06-18 00:30:42
【问题描述】:

我想在水晶报表中设置组部分的高度。我想设置组部分,使其在该部分中最多容纳 10 条记录。

如果我在该部分中只有 2 条记录,它应该显示 8 个空行。 如果我在该部分中有超过 10 条记录,剩余的记录将放在下一页。

之后,页脚将打印在它的末尾。

这可能吗,即使经过大量搜索我也没有得到任何解决方案

【问题讨论】:

    标签: c# visual-studio-2008 crystal-reports crystal-reports-2008


    【解决方案1】:

    这是一个典型的要求,但会尝试提供解决方案。无需增加组部分的大小,只需按照指定方式尝试即可。

    1. Insert 11 group sections.
    2. Place the data field in 1st group section. 
    3. In the remaining 10 group sections place a line and write the supress condition for individual group section on the number of records retrived. For e.g if 5 records are retrived then 5 group sections with lines should get displayed and remaining sections with lines should get supressed, If 10 records are retrived then all 10 sections should get supressed.
    

    注意:这不是经过测试的代码。

    【讨论】:

      【解决方案2】:

      我以前见过这样的请求,但由于 CR 的结构方式,它们从未完全解决。要将您的组限制为仅显示 10 条记录,您可以进入部分专家并在分页选项卡下选中“10 条可见记录后的新页面”。 就空行而言,您可以尝试创建一个公式,如果总行数少于 10 行,该公式将插入空行,或者您可以尝试使用相应格式的子报表来显示记录。

      【讨论】:

        【解决方案3】:

        你需要做的不是抑制波段而是抑制字段。这样即使字段不打印,波段高度也会保持

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多