【问题标题】:Print custom symbol when textField is html markup当 textField 为 html 标记时打印自定义符号
【发布时间】:2016-01-27 06:44:52
【问题描述】:

我正在尝试使用 html 标记在 jasper 报告文本字段中打印字符串 "<",但它没有显示。这是我的示例代码:

CONCATENATE("<", $F{ComponentName}.trim(), "> - ")

【问题讨论】:

    标签: html jasper-reports textfield


    【解决方案1】:

    如果你在textField 上使用markup="html" 并且你想输出&lt;&gt;,你需要像任何其他html document 一样替换它们

    < with &lt;
    > with &gt;
    

    例子

    CONCATENATE("&lt;", $F{ComponentName}.trim(), "&gt; - ")
    

    【讨论】:

      猜你喜欢
      • 2022-01-08
      • 1970-01-01
      • 1970-01-01
      • 2019-09-05
      • 1970-01-01
      • 2023-02-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多