首页 > 解决方案 > 样式标签和
标签在 Jasper 报告中不能一起使用

问题描述

目前,我的 jasper 报告中有一个文本字段,其中包含文本不同部分的多个样式标签。

<textField>
        <reportElement x="9" y="2" width="403" height="126"/>
        <textElement markup="styled"/>
        <textFieldExpression><![CDATA['Hi <style size="32">User</style>How <br> <style size="12">are</style> you? ']]></textFieldExpression>
 </textField>

是否有解决方法可以使用样式标记和 html 标记?

标签: htmlcssjasper-reports

解决方案


推荐阅读