在单个波段中具有多行时,数据溢出会拉伸一行 [英] Stretch a row with data overflow while having multiple rows in a single band

查看:157
本文介绍了在单个波段中具有多行时,数据溢出会拉伸一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求绑定我在一个详细信息区域中有多行。

My requirements bind me to have multiple rows in a single "Details" band.

现在我有一个静态文本字段(以彩色突出显示)在最左边的列和它旁边的三个文本数据字段。

Right now I am having a static text field (which is highlighted in color) in the leftmost column and three text data fields next to it.

我在报告中想要的是,静态文本带以及三个带应当在高度上拉伸三个波段中任何一个波段的数据溢出,下一行正确显示在拉伸行的下方。通过正确我的意思是下一行元素应该具有相同的顶部值并显示在相同的行中。

What I want in my report is, the static text band along with the three bands should stretch in height when data in either of the three bands overflows, with the next row "properly" displayed below the stretched row. By "properly" I mean the next row elements should have their "top" values the same and be displayed in the same "row".

我尝试设置拉伸与溢出标记为真和位置为浮动但问题是下一行数据未正确定位。

I tried setting "Stretch with overflow" flag to "true" and "Position" to "float" but the problem is that the next row data is not properly positioned.

推荐答案

我找到了答案。解决方案的关键是将行内的元素组合在一起。

I have found the answer. The key to the solution is grouping the elements inside a row together.


  1. 删除所有静态文本标签。改为使用文本字段,文本用引号括起来。它们可以与其他文本字段和数据字段分组。

  2. 将引用文本字段后面的所有数据字段放在与引用文本字段相同的组中。

  3. 现在,对要显示的所有行执行相同操作。单个行的单独组。

选择组中的所有元素,或者所有gorup中的所有元素并执行以下操作:

Select all the elements in a group, or, all the elements in all the gorups and do this:


  • 将位置设置为浮动

  • 将拉伸类型设置为相对于最高的对象

  • 选中详细信息溢出时打印复选框。

  • 选中Stretch with overflow复选框。

  • Set "Position" to "Float"
  • Set "Stretch Type" to "Relative to the tallest object"
  • Check "Print when detail overflows" checkbox.
  • Check the "Stretch with overflow" checkbox.

我们可以做的就是让事情拉伸在一起。

That's all we can do to make things "stretch" together.

现在,乐队会必须使用这些拉伸的细节动态拉伸。只需转到band属性,将Split type设置为Default并将split允许为true。这对我有用。

Now, the band would have to stretch dynamically with these stretched details. Just go to the band properties, set Split type to "Default" and split allowed to true. This did the trick for me.

这篇关于在单个波段中具有多行时,数据溢出会拉伸一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆