【问题标题】:ireport/jasperreport forecolor not applied for excel reportireport/jasperreport forecolor 未应用于 excel 报告
【发布时间】:2023-03-28 03:00:01
【问题描述】:

我有一份带有“标题”样式的报告:

<style name="header" mode="Opaque" forecolor="#FFFFFF" backcolor="#15315B" vAlign="Middle" fontName="Arial" fontSize="10" isBold="true"/>

当我创建 PDF 报告 (JRPdfExporter) 时它正确显示,但是当我创建 XLSX 报告 (JRXlsxExporter) 时,文本保持黑色而不是粗体,而不是白色和粗体...

我使用 jasperreport 5.6。

使用样式的文本示例:

<staticText>
    <reportElement style="header" x="0" y="0" width="100" height="20" uuid="b5ee91c1-614a-40f8-96d3-2f626544e7c1"/>
    <textElement textAlignment="Center"/>
    <text><![CDATA[Field]]></text>
</staticText>

【问题讨论】:

    标签: jasper-reports


    【解决方案1】:

    我已将 jasperreport 更新到 6.0.3 版,现在可以使用...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多