【问题标题】:Avoiding BLANK ROW with 'Stretch with Overflow' in report在报告中使用“溢出溢出”避免 BLANK ROW
【发布时间】:2014-03-19 19:23:08
【问题描述】:

在我的碧玉报告中,我有 9 列。对于 col2 和 col9,将属性设置为

isStretchWithOverflow="true" 
positionType="Float" 
stretchType="RelativeToTallestObject" 
isRemoveLineWhenBlank="true" 
isPrintInFirstWholeBand="true" 
isPrintWhenDetailOverflows="true"

所以当EXCEL导出中的数据溢出时,col2和col9中的值会被拉伸。但问题是,当 col2 或 col9 在数据溢出时按列拉伸时,同时它为 col1,col3....col8 添加了 BLANK ROW。 我还添加了属性以避免空白行

<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>

**

Link to sample excel export file

**

【问题讨论】:

    标签: jasper-reports


    【解决方案1】:

    您必须在所有其他字段上添加stretchType="RelativeToTallestObject",以便它们在 col2 和 col9 溢出时改变高度。这样,一行中的所有字段都将具有相同的高度。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-12
      • 1970-01-01
      • 2020-01-07
      • 2020-03-08
      • 1970-01-01
      相关资源
      最近更新 更多