【问题标题】:How to draw vertical line in iReport?如何在 iReport 中绘制垂直线?
【发布时间】:2016-09-19 18:40:48
【问题描述】:

我正在使用 iReport 3.5.2?设计报告。我有一个子报告,我需要一个表格。

为了构建表格,我为行绘制了水平线。但是,我没有找到任何使线条垂直的选项,以便我可以制作列。

有没有人可以建议如何做。

【问题讨论】:

    标签: jasper-reports ireport


    【解决方案1】:

    您可以根据需要使线条垂直或水平
    通过更改行的widthheight 属性
    例如

    如果要画Vertical Line

    <line>
        <reportElement x="0" y="0" width="1" height="30"/>
    </line> 
    

    如果要画Horizontal Line

    <line>
        <reportElement x="0" y="0" width="30" height="1"/>
    </line> 
    

    【讨论】:

      【解决方案2】:

      行是错误的决定,可能是页面结束/开始的问题 使用

      <style name="cell">
          <box>
              <pen lineWidth="1.0" lineStyle="Solid"/>
          </box>
      </style>
      

      为您的 textField/staticText

      【讨论】:

        【解决方案3】:

        选择线条属性。设置width=1,height=value大于1

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2011-05-26
          • 1970-01-01
          • 2015-04-04
          • 2018-10-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-03-27
          相关资源
          最近更新 更多